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

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

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

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