Interface ICreateForeignKeyForeignColumnBuilder
Represents a builder used to specify the foreign column(s) when defining a foreign key in a database migration expression.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.ForeignKey
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface ICreateForeignKeyForeignColumnBuilder : IFluentBuilder
Methods
View SourceForeignColumn(string)
Specifies the foreign column for the foreign key constraint.
Declaration
ICreateForeignKeyToTableBuilder ForeignColumn(string column)
Parameters
| Type | Name | Description |
|---|---|---|
| string | column | The name of the foreign column. |
Returns
| Type | Description |
|---|---|
| ICreateForeignKeyToTableBuilder | The builder to specify the table the foreign key references. |
ForeignColumns(params string[])
Specifies the foreign key columns for the foreign key constraint.
Declaration
ICreateForeignKeyToTableBuilder ForeignColumns(params string[] columns)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | columns | The names of the foreign key columns. |
Returns
| Type | Description |
|---|---|
| ICreateForeignKeyToTableBuilder | A builder to specify the referenced table for the foreign key. |