C# Класс Framework.Migrator.Fluent.AddTable

Provides fluent interface for new table definition.
Наследование: Table
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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).

Описание методов

AddColumn() публичный Метод

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.
Результат Column

AddTable() публичный Метод

Initializes a new instance of the AddTable class.
public AddTable ( String tableName ) : System
tableName String Name of the table.
Результат System

ForeignKey() публичный Метод

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.
Результат ForeignKey

Migrate() публичный Метод

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.
Результат void