C# Class MigSharp.CreatedTableWithAddedColumnExtensions

Contains the extensions methods for the ICreatedTableWithAddedColumn interface.
Mostrar archivo Open project: dradovic/MigSharp

Public Methods

Method Description
HavingCurrentDateTimeAsDefault ( this column ) : ICreatedTableWithAddedColumn

Sets the default of the column to be the current system time of the database server.

HavingCurrentDateTimeOffsetAsDefault ( this column ) : ICreatedTableWithAddedColumn

Sets the default of the column to be the current system time including the timezone offset of the database server.

HavingCurrentUtcDateTimeAsDefault ( this column ) : ICreatedTableWithAddedColumn

Sets the default of the column to be the current UTC system time of the database server.

HavingNewGuidAsDefault ( this column ) : ICreatedTableWithAddedColumn

Sets the default of the column to be a new GUID.

HavingNewSequentialGuidAsDefault ( this column ) : ICreatedTableWithAddedColumn

Sets the default of the column to be a new, tentatively sequential (SQL Server) or otherwise random GUID.

OfSize ( this column, int size ) : ICreatedTableWithAddedColumn

Specifies the size of the data type of the column.

Unique ( this column ) : ICreatedTableWithAddedColumn

Puts the column under an unique constraint with a default constraint name.

Method Details

HavingCurrentDateTimeAsDefault() public static method

Sets the default of the column to be the current system time of the database server.
public static HavingCurrentDateTimeAsDefault ( this column ) : ICreatedTableWithAddedColumn
column this
return ICreatedTableWithAddedColumn

HavingCurrentDateTimeOffsetAsDefault() public static method

Sets the default of the column to be the current system time including the timezone offset of the database server.
public static HavingCurrentDateTimeOffsetAsDefault ( this column ) : ICreatedTableWithAddedColumn
column this
return ICreatedTableWithAddedColumn

HavingCurrentUtcDateTimeAsDefault() public static method

Sets the default of the column to be the current UTC system time of the database server.
public static HavingCurrentUtcDateTimeAsDefault ( this column ) : ICreatedTableWithAddedColumn
column this
return ICreatedTableWithAddedColumn

HavingNewGuidAsDefault() public static method

Sets the default of the column to be a new GUID.
public static HavingNewGuidAsDefault ( this column ) : ICreatedTableWithAddedColumn
column this
return ICreatedTableWithAddedColumn

HavingNewSequentialGuidAsDefault() public static method

Sets the default of the column to be a new, tentatively sequential (SQL Server) or otherwise random GUID.
public static HavingNewSequentialGuidAsDefault ( this column ) : ICreatedTableWithAddedColumn
column this
return ICreatedTableWithAddedColumn

OfSize() public static method

Specifies the size of the data type of the column.
public static OfSize ( this column, int size ) : ICreatedTableWithAddedColumn
column this
size int The length for character data types or the maximum total number of decimal digits for numeric data types.
return ICreatedTableWithAddedColumn

Unique() public static method

Puts the column under an unique constraint with a default constraint name.
public static Unique ( this column ) : ICreatedTableWithAddedColumn
column this
return ICreatedTableWithAddedColumn