C# Class Framework.Migrator.Fluent.AddTable

Provides fluent interface for new table definition.
Inheritance: Table
Afficher le fichier Open project: coreframework/Core-Framework Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat Column

AddTable() public méthode

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

ForeignKey() public méthode

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.
Résultat ForeignKey

Migrate() public méthode

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.
Résultat void