예제 #1
0
 public AddColumnCommand(AlterTableCommand parent, string columnName, DbType type, bool isNullable)
     : base(parent)
 {
     _columnName = columnName;
     _type       = type;
     _isNullable = isNullable;
 }
예제 #2
0
 public AddColumnCommand(AlterTableCommand parent, string columnName, DbType type, bool isNullable, bool isRowVersion)
     : base(parent)
 {
     _columnName = columnName;
     _type = type;
     _isNullable = isNullable;
     _isRowVersion = isRowVersion;
 }
예제 #3
0
        public AlterPrimaryKeyCommand(AlterTableCommand parent, string constraintName)
            : base(parent)
        {
            if (string.IsNullOrEmpty(constraintName))
            {
                throw new ArgumentException("Empty constraintName.");
            }

            _constraintName = constraintName;
        }
예제 #4
0
 public AddIndexCommand(AlterTableCommand parent, string indexName) : base(parent)
 {
     _indexName = indexName;
 }
 public AddForeignKeyToCommand(AlterTableCommand parent, string referencedTableName, string constraintName)
     : base(parent)
 {
     _referencedTableName = referencedTableName;
     _constraintName = constraintName;
 }
예제 #6
0
 public AddPrimaryKeyCommand(AlterTableCommand parent, string constraintName) : base(parent)
 {
     _constraintName = constraintName;
 }
예제 #7
0
 public AddUniqueConstraintCommand(AlterTableCommand parent, string constraintName)
     : base(parent)
 {
     _constraintName = constraintName;
 }
예제 #8
0
 public AddIndexCommand(AlterTableCommand parent, string indexName)
     : base(parent)
 {
     _indexName = indexName;
 }
예제 #9
0
 public AddForeignKeyToCommand(AlterTableCommand parent, string referencedTableName, string constraintName)
     : base(parent)
 {
     _referencedTableName = referencedTableName;
     _constraintName      = constraintName;
 }
예제 #10
0
 public AddPrimaryKeyCommand(AlterTableCommand parent, string constraintName)
     : base(parent)
 {
     _constraintName = constraintName;
 }
 public AddUniqueConstraintCommand(AlterTableCommand parent, string constraintName)
     : base(parent)
 {
     _constraintName = constraintName;
 }