C# 클래스 Framework.Migrator.Fluent.AddTable

Provides fluent interface for new table definition.
상속: Table
파일 보기 프로젝트 열기: coreframework/Core-Framework 1 사용 예제들

공개 메소드들

메소드 설명
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