Search Results for

    Show / Hide Table of Contents
    View Source

    Class DeleteForeignKeyBuilder

    Implements IDeleteForeignKey...

    Inheritance
    object
    ExpressionBuilderBase<DeleteForeignKeyExpression>
    Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.ForeignKey
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class DeleteForeignKeyBuilder : ExpressionBuilderBase<DeleteForeignKeyExpression>, IDeleteForeignKeyFromTableBuilder, IDeleteForeignKeyForeignColumnBuilder, IDeleteForeignKeyToTableBuilder, IDeleteForeignKeyPrimaryColumnBuilder, IDeleteForeignKeyOnTableBuilder, IFluentBuilder

    Constructors

    View Source

    DeleteForeignKeyBuilder(DeleteForeignKeyExpression)

    Initializes a new instance of the DeleteForeignKeyBuilder class.

    Declaration
    public DeleteForeignKeyBuilder(DeleteForeignKeyExpression expression)
    Parameters
    Type Name Description
    DeleteForeignKeyExpression expression

    The DeleteForeignKeyExpression that defines the foreign key to be deleted.

    Methods

    View Source

    ForeignColumn(string)

    Specifies the foreign column.

    Declaration
    public IDeleteForeignKeyToTableBuilder ForeignColumn(string column)
    Parameters
    Type Name Description
    string column

    The name of the foreign column.

    Returns
    Type Description
    IDeleteForeignKeyToTableBuilder

    An IDeleteForeignKeyToTableBuilder to continue building the foreign key deletion expression.

    View Source

    ForeignColumns(params string[])

    Specifies the foreign columns.

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

    FromTable(string)

    Specifies the table from which the foreign key will be deleted.

    Declaration
    public IDeleteForeignKeyForeignColumnBuilder FromTable(string foreignTableName)
    Parameters
    Type Name Description
    string foreignTableName

    The name of the table containing the foreign key to be deleted.

    Returns
    Type Description
    IDeleteForeignKeyForeignColumnBuilder

    An IDeleteForeignKeyForeignColumnBuilder to specify the foreign column.

    View Source

    OnTable(string)

    Specifies the table from which the foreign key will be deleted.

    Declaration
    public IExecutableBuilder OnTable(string foreignTableName)
    Parameters
    Type Name Description
    string foreignTableName

    The name of the table containing the foreign key to delete.

    Returns
    Type Description
    IExecutableBuilder

    An executable builder to continue the migration expression.

    View Source

    PrimaryColumn(string)

    Specifies the target primary column.

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

    PrimaryColumns(params string[])

    Specifies the target primary columns.

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

    ToTable(string)

    Specifies the target table of the foreign key.

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