C# 클래스 MigSharp.ExistingTableExtensions

Contains extension methods for the IExistingTable interface.
파일 보기 프로젝트 열기: dradovic/MigSharp

공개 메소드들

메소드 설명
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