Inheritance: TableCommand, ITranslatableCommand
Exemplo n.º 1
0
 public CreateColumnCommand(CreateTableCommand parent, string columnName, DbType type, bool isNullable, bool isPrimaryKey)
     : base(parent)
 {
     _columnName = columnName;
     _type = type;
     _isNullable = isNullable;
     _isPrimaryKey = isPrimaryKey;
 }
Exemplo n.º 2
0
 public CreateColumnCommand(CreateTableCommand parent, string columnName, DbType type, bool isNullable, bool isPrimaryKey)
     : base(parent)
 {
     _columnName   = columnName;
     _type         = type;
     _isNullable   = isNullable;
     _isPrimaryKey = isPrimaryKey;
 }
Exemplo n.º 3
0
 public ICreatedTable CreateTable(string tableName, string primaryKeyConstraintName)
 {
     var createTableCommand = new CreateTableCommand(_root, tableName, primaryKeyConstraintName);
     _root.Add(createTableCommand);
     return new CreatedTable(createTableCommand);
 }