C# Класс MigSharp.CreatedTableWithAddedColumnExtensions

Contains the extensions methods for the ICreatedTableWithAddedColumn interface.
Показать файл Открыть проект

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

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

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

HavingCurrentDateTimeAsDefault() публичный статический Метод

Sets the default of the column to be the current system time of the database server.
public static HavingCurrentDateTimeAsDefault ( this column ) : ICreatedTableWithAddedColumn
column this
Результат ICreatedTableWithAddedColumn

HavingCurrentDateTimeOffsetAsDefault() публичный статический Метод

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

HavingCurrentUtcDateTimeAsDefault() публичный статический Метод

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

HavingNewGuidAsDefault() публичный статический Метод

Sets the default of the column to be a new GUID.
public static HavingNewGuidAsDefault ( this column ) : ICreatedTableWithAddedColumn
column this
Результат ICreatedTableWithAddedColumn

HavingNewSequentialGuidAsDefault() публичный статический Метод

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

OfSize() публичный статический Метод

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

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

Puts the column under an unique constraint with a default constraint name.
public static Unique ( this column ) : ICreatedTableWithAddedColumn
column this
Результат ICreatedTableWithAddedColumn