Ejemplo n.º 1
0
        public void CopyFrom(MColumn c)
        {
            table_catalog            = c.table_catalog;
            table_schema             = c.table_schema;
            table_name               = c.table_name;
            column_name              = c.column_name;
            ordinal_position         = c.ordinal_position;
            column_default           = c.column_default;
            is_nullable              = c.is_nullable;
            data_type                = c.data_type;
            character_maximum_length = c.character_maximum_length;
            character_octet_length   = c.character_octet_length;
            numeric_precision        = c.numeric_precision;
            numeric_precision_radix  = c.numeric_precision_radix;
            numeric_scale            = c.numeric_scale;
            datetime_precision       = c.datetime_precision;
            character_set_catalog    = c.character_set_catalog;
            character_set_schema     = c.character_set_schema;
            character_set_name       = c.character_set_name;
            collation_catalog        = c.collation_catalog;
            is_filestream            = c.is_filestream;
            IsPrimaryKey             = c.IsPrimaryKey;
            Comment   = c.Comment;
            PropType  = c.PropType;
            DbType    = c.DbType;
            SqlDbType = c.SqlDbType;

            TableKey = $"{table_catalog}.{table_schema}.{table_name}";

            if (c.Tag is ICloneable tag)
            {
                Tag = tag.Clone();
            }
        }
Ejemplo n.º 2
0
 public MColumn(MColumn source)
 {
     CopyFrom(source);
 }