Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

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

    View Source

    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.

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