Esempio n. 1
0
        public DataFileColumn(string name, DataType type)
        {
            InitializeMembers();

            this.Name = name;
            this.DataType = type;
        }
Esempio n. 2
0
 private void InitializeMembers()
 {
     this.id = 0;
     this.name = null;
     this.dataType = null;
     this.metadata = new DataFileColumnMetadata();
     this.isNullable = false;
     this.isIdentity = false;
     this.isKey = false;
     this.isHidden = false;
 }
Esempio n. 3
0
 public DataType(DataType old)
 {
     CopyMembers(old);
 }
Esempio n. 4
0
 private void CopyMembers(DataFileColumn old)
 {
     this.id = old.id;
     this.name = old.name;
     this.dataType = old.dataType;
     this.metadata = new DataFileColumnMetadata(old.metadata);
     this.isNullable = old.isNullable;
     this.isIdentity = old.isIdentity;
     this.isKey = old.isKey;
     this.isHidden = old.isHidden;
 }
Esempio n. 5
0
 private void CopyMembers(DataType old)
 {
     this.name = old.name;
     this.type = old.type;
     this.sqlDbType = old.sqlDbType;
     this.byteSize = old.byteSize;
     this.scale = old.scale;
     this.precision = old.precision;
     this.length = old.length;
     this.hasLength = old.hasLength;
     this.maxLength = old.maxLength;
     this.isVarLength = old.isVarLength;
     this.isSqlArray = old.isSqlArray;
     this.arrayLength = old.arrayLength;
     this.isVarArrayLength = old.isVarArrayLength;
 }