Search Results for

    Show / Hide Table of Contents
    View Source

    Class DeleteConstraintExpression

    Represents an expression to delete a database constraint during a migration.

    Inheritance
    object
    MigrationExpressionBase
    Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Expressions
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class DeleteConstraintExpression : MigrationExpressionBase, IMigrationExpression

    Constructors

    View Source

    DeleteConstraintExpression(IMigrationContext, ConstraintType)

    Initializes a new instance of the DeleteConstraintExpression class with the specified migration context and constraint type.

    Declaration
    public DeleteConstraintExpression(IMigrationContext context, ConstraintType type)
    Parameters
    Type Name Description
    IMigrationContext context

    The IMigrationContext to use for the migration operation.

    ConstraintType type

    The ConstraintType representing the type of constraint to delete.

    Properties

    View Source

    Constraint

    Gets the constraint definition to be deleted.

    Declaration
    public ConstraintDefinition Constraint { get; }
    Property Value
    Type Description
    ConstraintDefinition

    Methods

    View Source

    GetSql()

    Declaration
    protected override string GetSql()
    Returns
    Type Description
    string
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX