C# Class MigSharp.ExistingTableWithAddedColumnExtensions

Contains the extensions methods for the IExistingTableWithAddedColumn interface.
Exibir arquivo Open project: dradovic/MigSharp

Public Methods

Method Description
HavingCurrentDateTimeAsDefault ( this column ) : IExistingTableBase

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

HavingCurrentDateTimeOffsetAsDefault ( this column ) : IExistingTableBase

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

HavingCurrentUtcDateTimeAsDefault ( this column ) : IExistingTableBase

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

HavingNewGuidAsDefault ( this column ) : IExistingTableBase

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

HavingNewSequentialGuidAsDefault ( this column ) : IExistingTableBase

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

OfSize ( this column, int size ) : IExistingTableWithAddedColumn

Specifies the size of the data type of the column.

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 ) : IExistingTableBase
column this
return IExistingTableBase

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 ) : IExistingTableBase
column this
return IExistingTableBase

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 ) : IExistingTableBase
column this
return IExistingTableBase

HavingNewGuidAsDefault() public static method

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

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 ) : IExistingTableBase
column this
return IExistingTableBase

OfSize() public static method

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