C# Class Framework.Migrator.Fluent.Table

Provides fluent interface for table manipulation.
Inheritance: IMigrationPart
Afficher le fichier Open project: coreframework/Core-Framework

Méthodes publiques

Méthode 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 méthode

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.
Résultat Column

AddColumn() public méthode

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

Bool() public méthode

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

DateTime() public méthode

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

Decimal() public méthode

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

Double() public méthode

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

ForeignKey() public méthode

Adds foreigns key.
public ForeignKey ( String reference ) : ForeignKey
reference String The relationship name.
Résultat ForeignKey

Integer() public méthode

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

Long() public méthode

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

Migrate() public méthode

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

PrimaryKey() public méthode

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

PrimaryKey() public méthode

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.
Résultat Column

PrimaryKey() public méthode

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.
Résultat Column

String() public méthode

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

Table() public méthode

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

Text() public méthode

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