C# Class Framework.Migrator.Fluent.AddTable

Provides fluent interface for new table definition.
Inheritance: Table
ファイルを表示 Open project: coreframework/Core-Framework Class Usage Examples

Public Methods

Method Description
AddColumn ( String columnName ) : Column

Adds the column with name specified. Adds column definition to columns list to generate add table statement.

AddTable ( String tableName ) : System

Initializes a new instance of the AddTable class.

ForeignKey ( String reference ) : ForeignKey

Adds foreigns key. Adds foreign key column definition to columns list to generate add table statement and avoid column generation by foreign key.

Migrate ( ITransformationProvider database ) : void

Adds new table with columns specified and executes all inner migration parts (column, keys, constraint manipulation).

Method Details

AddColumn() public method

Adds the column with name specified. Adds column definition to columns list to generate add table statement.
public AddColumn ( String columnName ) : Column
columnName String Name of the column.
return Column

AddTable() public method

Initializes a new instance of the AddTable class.
public AddTable ( String tableName ) : System
tableName String Name of the table.
return System

ForeignKey() public method

Adds foreigns key. Adds foreign key column definition to columns list to generate add table statement and avoid column generation by foreign key.
public ForeignKey ( String reference ) : ForeignKey
reference String The relationship name.
return ForeignKey

Migrate() public method

Adds new table with columns specified and executes all inner migration parts (column, keys, constraint manipulation).
public Migrate ( ITransformationProvider database ) : void
database ITransformationProvider The database.
return void