Search Results for

    Show / Hide Table of Contents
    View Source

    Class DeleteConstraintBuilder

    Provides a builder for constructing migration expressions that delete database constraints.

    Inheritance
    object
    ExpressionBuilderBase<DeleteConstraintExpression>
    Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Constraint
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class DeleteConstraintBuilder : ExpressionBuilderBase<DeleteConstraintExpression>, IDeleteConstraintBuilder, IFluentBuilder

    Constructors

    View Source

    DeleteConstraintBuilder(DeleteConstraintExpression)

    Initializes a new instance of the DeleteConstraintBuilder class.

    Declaration
    public DeleteConstraintBuilder(DeleteConstraintExpression expression)
    Parameters
    Type Name Description
    DeleteConstraintExpression expression

    The expression representing the constraint to be deleted.

    Methods

    View Source

    FromTable(string)

    Specifies the table from which to delete the constraint.

    Declaration
    public IExecutableBuilder FromTable(string tableName)
    Parameters
    Type Name Description
    string tableName

    The name of the table from which the constraint will be deleted.

    Returns
    Type Description
    IExecutableBuilder

    An IExecutableBuilder to execute the delete operation.

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