Class DeleteConstraintBuilder
Provides a builder for constructing migration expressions that delete database constraints.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Constraint
Assembly: Umbraco.Infrastructure.dll
Syntax
public class DeleteConstraintBuilder : ExpressionBuilderBase<DeleteConstraintExpression>, IDeleteConstraintBuilder, IFluentBuilder
Constructors
View SourceDeleteConstraintBuilder(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 SourceFromTable(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. |