C# Класс MigSharp.ExistingTableExtensions

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

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

Метод Описание
AddForeignKeyTo ( this table, string referencedTableName ) : IAddedForeignKey

Adds a foreign key constraint to another table within the same schema with a default foreign key name.

AddIndex ( this table ) : IAddedIndex

Adds an index to the table.

AddPrimaryKey ( this table ) : IAddedPrimaryKey

Adds a primary key constraint to the table with the default name.

AddUniqueConstraint ( this table ) : IAddedUniqueConstraint

Adds an unique constraint to the table with the default name.

ForeignKeyTo ( this table, string referencedTableName ) : IForeignKey

Gets an foreign key constraint by the name of its referenced table.

PrimaryKey ( this table ) : IExistingPrimaryKey

Gets the primary key constraint of the table with the default name.

UniqueConstraintOf ( this table, string firstColumnName ) : IUniqueConstraint

Gets an unique constraint by the name of its first column.

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

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

Adds a foreign key constraint to another table within the same schema with a default foreign key name.
public static AddForeignKeyTo ( this table, string referencedTableName ) : IAddedForeignKey
table this
referencedTableName string
Результат IAddedForeignKey

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

Adds an index to the table.
public static AddIndex ( this table ) : IAddedIndex
table this
Результат IAddedIndex

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

Adds a primary key constraint to the table with the default name.
public static AddPrimaryKey ( this table ) : IAddedPrimaryKey
table this
Результат IAddedPrimaryKey

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

Adds an unique constraint to the table with the default name.
public static AddUniqueConstraint ( this table ) : IAddedUniqueConstraint
table this
Результат IAddedUniqueConstraint

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

Gets an foreign key constraint by the name of its referenced table.
public static ForeignKeyTo ( this table, string referencedTableName ) : IForeignKey
table this
referencedTableName string
Результат IForeignKey

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

Gets the primary key constraint of the table with the default name.
public static PrimaryKey ( this table ) : IExistingPrimaryKey
table this
Результат IExistingPrimaryKey

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

Gets an unique constraint by the name of its first column.
public static UniqueConstraintOf ( this table, string firstColumnName ) : IUniqueConstraint
table this
firstColumnName string
Результат IUniqueConstraint