C# 클래스 Framework.Migrator.Fluent.Column

Provides fluent interface for column building.
상속: IMigrationPart, IColumn
파일 보기 프로젝트 열기: coreframework/Core-Framework

공개 메소드들

메소드 설명
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