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

Provides fluent interface for table manipulation.
상속: IMigrationPart
파일 보기 프로젝트 열기: coreframework/Core-Framework

공개 메소드들

메소드 설명
AddColumn ( DbType type, String columnName ) : Column

Adds the column with name and type specified.

AddColumn ( String columnName ) : Column

Adds the column with name specified.

Bool ( String columnName ) : Column

Adds Bool column with name specified.

DateTime ( String columnName ) : Column

Adds DateTime column with name specified.

Decimal ( String columnName ) : Column

Adds Decimal column with name specified.

Double ( String columnName ) : Column

Adds Double column with name specified.

ForeignKey ( String reference ) : ForeignKey

Adds foreigns key.

Integer ( String columnName ) : Column

Adds Integer column with name specified.

Long ( String columnName ) : Column

Adds Long column with name specified.

Migrate ( ITransformationProvider database ) : void

Table is composite object. Migrate method executes all inner migration parts (column, keys, constraint manipulation).

PrimaryKey ( ) : Column

Add column with default primary key name (Id) and default primary key type (Long) and makes it primary key.

PrimaryKey ( DbType columnType, String columnName ) : Column

Add column with name and type specified and makes it primary key.

PrimaryKey ( String columnName ) : Column

Add column with name specified and default primary key type (Long) and makes it primary key.

String ( String columnName ) : Column

Adds String column with name specified.

Table ( String tableName ) : System

Initializes a new instance of the Table class.

Text ( String columnName ) : Column

Adds Text column with name specified.

메소드 상세

AddColumn() 공개 메소드

Adds the column with name and type specified.
public AddColumn ( DbType type, String columnName ) : Column
type DbType Type of the column.
columnName String Name of the column.
리턴 Column

AddColumn() 공개 메소드

Adds the column with name specified.
public AddColumn ( String columnName ) : Column
columnName String Name of the column.
리턴 Column

Bool() 공개 메소드

Adds Bool column with name specified.
public Bool ( String columnName ) : Column
columnName String Name of the column.
리턴 Column

DateTime() 공개 메소드

Adds DateTime column with name specified.
public DateTime ( String columnName ) : Column
columnName String Name of the column.
리턴 Column

Decimal() 공개 메소드

Adds Decimal column with name specified.
public Decimal ( String columnName ) : Column
columnName String Name of the column.
리턴 Column

Double() 공개 메소드

Adds Double column with name specified.
public Double ( String columnName ) : Column
columnName String Name of the column.
리턴 Column

ForeignKey() 공개 메소드

Adds foreigns key.
public ForeignKey ( String reference ) : ForeignKey
reference String The relationship name.
리턴 ForeignKey

Integer() 공개 메소드

Adds Integer column with name specified.
public Integer ( String columnName ) : Column
columnName String Name of the column.
리턴 Column

Long() 공개 메소드

Adds Long column with name specified.
public Long ( String columnName ) : Column
columnName String Name of the column.
리턴 Column

Migrate() 공개 메소드

Table is composite object. Migrate method executes all inner migration parts (column, keys, constraint manipulation).
public Migrate ( ITransformationProvider database ) : void
database ITransformationProvider The database.
리턴 void

PrimaryKey() 공개 메소드

Add column with default primary key name (Id) and default primary key type (Long) and makes it primary key.
public PrimaryKey ( ) : Column
리턴 Column

PrimaryKey() 공개 메소드

Add column with name and type specified and makes it primary key.
public PrimaryKey ( DbType columnType, String columnName ) : Column
columnType DbType Type of the column.
columnName String Name of the column.
리턴 Column

PrimaryKey() 공개 메소드

Add column with name specified and default primary key type (Long) and makes it primary key.
public PrimaryKey ( String columnName ) : Column
columnName String Name of the column.
리턴 Column

String() 공개 메소드

Adds String column with name specified.
public String ( String columnName ) : Column
columnName String Name of the column.
리턴 Column

Table() 공개 메소드

Initializes a new instance of the Table class.
public Table ( String tableName ) : System
tableName String Name of the table.
리턴 System

Text() 공개 메소드

Adds Text column with name specified.
public Text ( String columnName ) : Column
columnName String Name of the column.
리턴 Column