コード例 #1
0
 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;
 }
コード例 #2
0
 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)
 {
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 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;
 }
コード例 #5
0
 public EncryptColumnCommand(ColumnRef column, ColumnEncryptionFlags encryptionFlags, bool statusCheck = false)
 {
     Column          = column;
     EncryptionFlags = encryptionFlags;
     StatusCheck     = statusCheck;
 }
コード例 #6
0
 public EncryptColumnCommand(string columnName, ColumnEncryptionFlags encryptionFlags, bool statusCheck = false)
     : this(new ColumnRef(columnName), encryptionFlags, statusCheck)
 {
 }