Class DeleteConstraintExpression
Represents an expression to delete a database constraint during a migration.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Expressions
Assembly: Umbraco.Infrastructure.dll
Syntax
public class DeleteConstraintExpression : MigrationExpressionBase, IMigrationExpression
Constructors
View SourceDeleteConstraintExpression(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 SourceConstraint
Gets the constraint definition to be deleted.
Declaration
public ConstraintDefinition Constraint { get; }
Property Value
| Type | Description |
|---|---|
| ConstraintDefinition |
Methods
View SourceGetSql()
Declaration
protected override string GetSql()
Returns
| Type | Description |
|---|---|
| string |