Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    ForeignColumn(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.

    View Source

    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.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX