public ColumnDefinition(ColumnDefinition other) { ColumnName = other.ColumnName.Clone(); DataType = other.DataType; EncryptionFlags = other.EncryptionFlags; KeyVersion = other.KeyVersion; Length = other.Length; EnumValues = other.EnumValues.Select(item => (StringConstant)item.Clone()).ToList(); Nullable = other.Nullable; IsRowId = other.IsRowId; DefaultValue = other.DefaultValue; AutoIncrement = other.AutoIncrement; }
public ColumnDefinition(string columnName, SqlDataType dataType, int?length = null, bool nullable = true, bool isRowId = false, ColumnEncryptionFlags encryptionFlags = ColumnEncryptionFlags.None, int?keyVersion = null, Expression defaultValue = null, bool autoIncrement = false) : this(new Identifier(columnName), dataType, length, nullable, isRowId, encryptionFlags, keyVersion, defaultValue, autoIncrement) { }
public ColumnDefinition(Identifier column, SqlDataType dataType, int?length = null, bool nullable = true, bool isRowId = false, ColumnEncryptionFlags encryptionFlags = ColumnEncryptionFlags.None, int?keyVersion = null, Expression defaultValue = null, bool autoIncrement = false) { this.ColumnName = column == null ? new Identifier("") : column.Clone(); this.DataType = dataType; this.EncryptionFlags = encryptionFlags; this.KeyVersion = keyVersion; this.Length = length; this.EnumValues = new List <StringConstant>(); this.Nullable = nullable; this.IsRowId = isRowId; this.DefaultValue = defaultValue; this.AutoIncrement = autoIncrement; }
public ColumnDefinition(Identifier column, SqlDataType dataType, int?length = null, bool nullable = true, bool isRowId = false, ColumnEncryptionFlags encryptionFlags = ColumnEncryptionFlags.None, int?keyVersion = null, Expression defaultValue = null, bool autoIncrement = false, bool primaryKey = false) { ColumnName = column == null ? new Identifier("") : column; DataType = dataType; EncryptionFlags = encryptionFlags; KeyVersion = keyVersion; Length = length; EnumValues = new List <StringConstant>(); Nullable = nullable; IsRowId = isRowId; DefaultValue = defaultValue; AutoIncrement = autoIncrement; PrimaryKey = primaryKey; }
public EncryptColumnCommand(ColumnRef column, ColumnEncryptionFlags encryptionFlags, bool statusCheck = false) { Column = column; EncryptionFlags = encryptionFlags; StatusCheck = statusCheck; }
public EncryptColumnCommand(string columnName, ColumnEncryptionFlags encryptionFlags, bool statusCheck = false) : this(new ColumnRef(columnName), encryptionFlags, statusCheck) { }