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

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

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

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

Приватные методы

Метод Описание
AddProperty ( ColumnProperty property, bool value ) : void
GetColumnType ( ) : ECM7.Migrator.Framework.ColumnType

Описание методов

AddProperty() публичный Метод

Adds column property.
public AddProperty ( ColumnProperty property ) : Column
property ColumnProperty The column property.
Результат Column

Bool() публичный Метод

Sets column type to Bool.
public Bool ( ) : Column
Результат Column

Column() публичный Метод

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.
Результат System

Column() публичный Метод

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.
Результат System

DateTime() публичный Метод

Sets column type to DateTime.
public DateTime ( ) : Column
Результат Column

Decimal() публичный Метод

Sets column type to Decimal.
public Decimal ( ) : Column
Результат Column

Default() публичный Метод

Sets the column default value.
public Default ( Object columnDefaultValue ) : Column
columnDefaultValue Object The column default value.
Результат Column

Double() публичный Метод

Sets column type to Double.
public Double ( ) : Column
Результат Column

GetColumn() публичный Метод

Gets the column specification.
public GetColumn ( ) : ECM7.Migrator.Framework.Column
Результат ECM7.Migrator.Framework.Column

Identity() публичный Метод

Makes the column identity.
public Identity ( ) : Column
Результат Column

Integer() публичный Метод

Sets column type to Integer (32 bit integer number).
public Integer ( ) : Column
Результат Column

Length() публичный Метод

Sets the length for column.
public Length ( int columnLength ) : Column
columnLength int Length of the column.
Результат Column

Long() публичный Метод

Sets column type to Long (64 bit integer number).
public Long ( ) : Column
Результат Column

Migrate() публичный Метод

Implementation of this method is speicific to operation kind (add column, change column, remove column).
public Migrate ( ITransformationProvider database ) : void
database ITransformationProvider The database.
Результат void

Null() публичный Метод

Makes the column nullable.
public Null ( ) : Column
Результат Column

PrimaryKey() публичный Метод

Makes the column primary key.
public PrimaryKey ( ) : Column
Результат Column

RemoveProperty() публичный Метод

Removes column property.
public RemoveProperty ( ColumnProperty property ) : Column
property ColumnProperty The column property.
Результат Column

Scale() публичный Метод

Sets the scale for column.
public Scale ( int columnScale ) : Column
columnScale int Scale of the column.
Результат Column

String() публичный Метод

Sets column type to String.
public String ( ) : Column
Результат Column

Text() публичный Метод

Sets column type to Text.
public Text ( ) : Column
Результат Column

Type() публичный Метод

Sets the column type.
public Type ( DbType columnType ) : Column
columnType DbType Type of the column.
Результат Column

Unique() публичный Метод

Makes the column unique.
public Unique ( ) : Column
Результат Column