﻿// Decompiled with JetBrains decompiler
// Type: System.Data.SqlClient.SqlMetaDataPriv
// Assembly: System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// MVID: A0A8E655-5215-4802-816D-C9E5EBD7DA5D
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Data.dll

using Microsoft.SqlServer.Server;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace System.Data.SqlClient
{
  internal class SqlMetaDataPriv
  {
    internal byte precision = byte.MaxValue;
    internal byte scale = byte.MaxValue;
    internal SqlDbType type;
    internal byte tdsType;
    internal int length;
    internal SqlCollation collation;
    internal int codePage;
    internal Encoding encoding;
    internal bool isNullable;
    internal bool isMultiValued;
    internal string udtDatabaseName;
    internal string udtSchemaName;
    internal string udtTypeName;
    internal string udtAssemblyQualifiedName;
    internal Type udtType;
    internal string xmlSchemaCollectionDatabase;
    internal string xmlSchemaCollectionOwningSchema;
    internal string xmlSchemaCollectionName;
    internal MetaType metaType;
    internal string structuredTypeDatabaseName;
    internal string structuredTypeSchemaName;
    internal string structuredTypeName;
    internal IList<SmiMetaData> structuredFields;

    internal SqlMetaDataPriv()
    {
    }

    internal virtual void CopyFrom(SqlMetaDataPriv original)
    {
      this.type = original.type;
      this.tdsType = original.tdsType;
      this.precision = original.precision;
      this.scale = original.scale;
      this.length = original.length;
      this.collation = original.collation;
      this.codePage = original.codePage;
      this.encoding = original.encoding;
      this.isNullable = original.isNullable;
      this.isMultiValued = original.isMultiValued;
      this.udtDatabaseName = original.udtDatabaseName;
      this.udtSchemaName = original.udtSchemaName;
      this.udtTypeName = original.udtTypeName;
      this.udtAssemblyQualifiedName = original.udtAssemblyQualifiedName;
      this.udtType = original.udtType;
      this.xmlSchemaCollectionDatabase = original.xmlSchemaCollectionDatabase;
      this.xmlSchemaCollectionOwningSchema = original.xmlSchemaCollectionOwningSchema;
      this.xmlSchemaCollectionName = original.xmlSchemaCollectionName;
      this.metaType = original.metaType;
      this.structuredTypeDatabaseName = original.structuredTypeDatabaseName;
      this.structuredTypeSchemaName = original.structuredTypeSchemaName;
      this.structuredTypeName = original.structuredTypeName;
      this.structuredFields = original.structuredFields;
    }
  }
}
