Interface ICreateForeignKeyPrimaryColumnBuilder
Provides a builder for specifying the primary column when creating a foreign key.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.ForeignKey
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface ICreateForeignKeyPrimaryColumnBuilder : IFluentBuilder
Methods
View SourcePrimaryColumn(string)
Specifies the primary (referenced) column for the foreign key constraint.
Declaration
ICreateForeignKeyCascadeBuilder PrimaryColumn(string column)
Parameters
| Type | Name | Description |
|---|---|---|
| string | column | The name of the primary (referenced) column. |
Returns
| Type | Description |
|---|---|
| ICreateForeignKeyCascadeBuilder | An ICreateForeignKeyCascadeBuilder to continue building the foreign key. |
PrimaryColumns(params string[])
Specifies the primary key columns for the foreign key.
Declaration
ICreateForeignKeyCascadeBuilder PrimaryColumns(params string[] columns)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | columns | The names of the primary key columns. |
Returns
| Type | Description |
|---|---|
| ICreateForeignKeyCascadeBuilder | An ICreateForeignKeyCascadeBuilder to continue building the foreign key. |