public DataFileColumn(string name, DataType type) { InitializeMembers(); this.Name = name; this.DataType = type; }
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; }
public DataType(DataType old) { CopyMembers(old); }
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; }
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; }