C# Class Framework.Migrator.Fluent.Column

Provides fluent interface for column building.
Inheritance: IMigrationPart, IColumn
Mostra file Open project: coreframework/Core-Framework

Public Methods

Method Description
AddProperty ( ColumnProperty property ) : Column

Adds column property.

Bool ( ) : Column

Sets column type to Bool.

Column ( DbType columnType, String columnName, String tableName ) : System

Initializes a new instance of the Column class.

Column ( String columnColumnColumnName, String tableColumnName ) : System

Initializes a new instance of the Column class.

DateTime ( ) : Column

Sets column type to DateTime.

Decimal ( ) : Column

Sets column type to Decimal.

Default ( Object columnDefaultValue ) : Column

Sets the column default value.

Double ( ) : Column

Sets column type to Double.

GetColumn ( ) : ECM7.Migrator.Framework.Column

Gets the column specification.

Identity ( ) : Column

Makes the column identity.

Integer ( ) : Column

Sets column type to Integer (32 bit integer number).

Length ( int columnLength ) : Column

Sets the length for column.

Long ( ) : Column

Sets column type to Long (64 bit integer number).

Migrate ( ITransformationProvider database ) : void

Implementation of this method is speicific to operation kind (add column, change column, remove column).

Null ( ) : Column

Makes the column nullable.

PrimaryKey ( ) : Column

Makes the column primary key.

RemoveProperty ( ColumnProperty property ) : Column

Removes column property.

Scale ( int columnScale ) : Column

Sets the scale for column.

String ( ) : Column

Sets column type to String.

Text ( ) : Column

Sets column type to Text.

Type ( DbType columnType ) : Column

Sets the column type.

Unique ( ) : Column

Makes the column unique.

Private Methods

Method Description
AddProperty ( ColumnProperty property, bool value ) : void
GetColumnType ( ) : ECM7.Migrator.Framework.ColumnType

Method Details

AddProperty() public method

Adds column property.
public AddProperty ( ColumnProperty property ) : Column
property ColumnProperty The column property.
return Column

Bool() public method

Sets column type to Bool.
public Bool ( ) : Column
return Column

Column() public method

Initializes a new instance of the Column class.
public Column ( DbType columnType, String columnName, String tableName ) : System
columnType DbType Column type.
columnName String Name of the column.
tableName String Name of the table.
return System

Column() public method

Initializes a new instance of the Column class.
public Column ( String columnColumnColumnName, String tableColumnName ) : System
columnColumnColumnName String Name of the column.
tableColumnName String Name of the table.
return System

DateTime() public method

Sets column type to DateTime.
public DateTime ( ) : Column
return Column

Decimal() public method

Sets column type to Decimal.
public Decimal ( ) : Column
return Column

Default() public method

Sets the column default value.
public Default ( Object columnDefaultValue ) : Column
columnDefaultValue Object The column default value.
return Column

Double() public method

Sets column type to Double.
public Double ( ) : Column
return Column

GetColumn() public method

Gets the column specification.
public GetColumn ( ) : ECM7.Migrator.Framework.Column
return ECM7.Migrator.Framework.Column

Identity() public method

Makes the column identity.
public Identity ( ) : Column
return Column

Integer() public method

Sets column type to Integer (32 bit integer number).
public Integer ( ) : Column
return Column

Length() public method

Sets the length for column.
public Length ( int columnLength ) : Column
columnLength int Length of the column.
return Column

Long() public method

Sets column type to Long (64 bit integer number).
public Long ( ) : Column
return Column

Migrate() public method

Implementation of this method is speicific to operation kind (add column, change column, remove column).
public Migrate ( ITransformationProvider database ) : void
database ITransformationProvider The database.
return void

Null() public method

Makes the column nullable.
public Null ( ) : Column
return Column

PrimaryKey() public method

Makes the column primary key.
public PrimaryKey ( ) : Column
return Column

RemoveProperty() public method

Removes column property.
public RemoveProperty ( ColumnProperty property ) : Column
property ColumnProperty The column property.
return Column

Scale() public method

Sets the scale for column.
public Scale ( int columnScale ) : Column
columnScale int Scale of the column.
return Column

String() public method

Sets column type to String.
public String ( ) : Column
return Column

Text() public method

Sets column type to Text.
public Text ( ) : Column
return Column

Type() public method

Sets the column type.
public Type ( DbType columnType ) : Column
columnType DbType Type of the column.
return Column

Unique() public method

Makes the column unique.
public Unique ( ) : Column
return Column