C# Class MigSharp.AlteredColumnExtensions

Contains the extensions methods for the IAlteredColumn interface.
显示文件 Open project: dradovic/MigSharp

Public Methods

Method Description
HavingCurrentDateTimeAsDefault ( this column ) : IAlteredColumn

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

HavingCurrentDateTimeOffsetAsDefault ( this column ) : IAlteredColumn

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

HavingCurrentUtcDateTimeAsDefault ( this column ) : IAlteredColumn

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

OfSize ( this column, int size ) : IAlteredColumn

Specifies the size of the new 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 ) : IAlteredColumn
column this
return IAlteredColumn

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

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

OfSize() public static method

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