Search Results for

    Show / Hide Table of Contents
    View Source

    Class CreateForeignKeyBuilder

    Inheritance
    object
    ExpressionBuilderBase<CreateForeignKeyExpression>
    Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.ForeignKey
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class CreateForeignKeyBuilder : ExpressionBuilderBase<CreateForeignKeyExpression>, ICreateForeignKeyFromTableBuilder, ICreateForeignKeyForeignColumnBuilder, ICreateForeignKeyToTableBuilder, ICreateForeignKeyPrimaryColumnBuilder, ICreateForeignKeyCascadeBuilder, IFluentBuilder, IExecutableBuilder

    Constructors

    View Source

    CreateForeignKeyBuilder(CreateForeignKeyExpression)

    Declaration
    public CreateForeignKeyBuilder(CreateForeignKeyExpression expression)
    Parameters
    Type Name Description
    CreateForeignKeyExpression expression

    Methods

    View Source

    Do()

    Executes.

    Declaration
    public void Do()
    View Source

    ForeignColumn(string)

    Declaration
    public ICreateForeignKeyToTableBuilder ForeignColumn(string column)
    Parameters
    Type Name Description
    string column
    Returns
    Type Description
    ICreateForeignKeyToTableBuilder
    View Source

    ForeignColumns(params string[])

    Declaration
    public ICreateForeignKeyToTableBuilder ForeignColumns(params string[] columns)
    Parameters
    Type Name Description
    string[] columns
    Returns
    Type Description
    ICreateForeignKeyToTableBuilder
    View Source

    FromTable(string)

    Declaration
    public ICreateForeignKeyForeignColumnBuilder FromTable(string table)
    Parameters
    Type Name Description
    string table
    Returns
    Type Description
    ICreateForeignKeyForeignColumnBuilder
    View Source

    OnDelete(Rule)

    Declaration
    public ICreateForeignKeyCascadeBuilder OnDelete(Rule rule)
    Parameters
    Type Name Description
    Rule rule
    Returns
    Type Description
    ICreateForeignKeyCascadeBuilder
    View Source

    OnDeleteOrUpdate(Rule)

    Declaration
    public IExecutableBuilder OnDeleteOrUpdate(Rule rule)
    Parameters
    Type Name Description
    Rule rule
    Returns
    Type Description
    IExecutableBuilder
    View Source

    OnUpdate(Rule)

    Declaration
    public ICreateForeignKeyCascadeBuilder OnUpdate(Rule rule)
    Parameters
    Type Name Description
    Rule rule
    Returns
    Type Description
    ICreateForeignKeyCascadeBuilder
    View Source

    PrimaryColumn(string)

    Declaration
    public ICreateForeignKeyCascadeBuilder PrimaryColumn(string column)
    Parameters
    Type Name Description
    string column
    Returns
    Type Description
    ICreateForeignKeyCascadeBuilder
    View Source

    PrimaryColumns(params string[])

    Declaration
    public ICreateForeignKeyCascadeBuilder PrimaryColumns(params string[] columns)
    Parameters
    Type Name Description
    string[] columns
    Returns
    Type Description
    ICreateForeignKeyCascadeBuilder
    View Source

    ToTable(string)

    Declaration
    public ICreateForeignKeyPrimaryColumnBuilder ToTable(string table)
    Parameters
    Type Name Description
    string table
    Returns
    Type Description
    ICreateForeignKeyPrimaryColumnBuilder
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX