C# Class Framework.Migrator.Fluent.Table

Provides fluent interface for table manipulation.
Inheritance: IMigrationPart
Exibir arquivo Open project: coreframework/Core-Framework

Public Methods

Method Description
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.

Method Details

AddColumn() public method

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.
return Column

AddColumn() public method

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

Bool() public method

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

DateTime() public method

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

Decimal() public method

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

Double() public method

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

ForeignKey() public method

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

Integer() public method

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

Long() public method

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

Migrate() public method

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

PrimaryKey() public method

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

PrimaryKey() public method

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.
return Column

PrimaryKey() public method

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.
return Column

String() public method

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

Table() public method

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

Text() public method

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