Class DeleteDefaultConstraintBuilder
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.DefaultConstraint
Assembly: Umbraco.Infrastructure.dll
Syntax
public class DeleteDefaultConstraintBuilder : ExpressionBuilderBase<DeleteDefaultConstraintExpression>, IDeleteDefaultConstraintOnTableBuilder, IDeleteDefaultConstraintOnColumnBuilder, IFluentBuilder
Constructors
View SourceDeleteDefaultConstraintBuilder(IMigrationContext, DeleteDefaultConstraintExpression)
Initializes a new instance of the DeleteDefaultConstraintBuilder class with the specified migration context and delete default constraint expression.
Declaration
public DeleteDefaultConstraintBuilder(IMigrationContext context, DeleteDefaultConstraintExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationContext | context | The IMigrationContext to use for the migration operation. |
| DeleteDefaultConstraintExpression | expression | The DeleteDefaultConstraintExpression representing the default constraint to be deleted. |
Methods
View SourceOnColumn(string)
Specifies the column from which to delete the default constraint.
Declaration
public IExecutableBuilder OnColumn(string columnName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | columnName | The name of the column that has the default constraint to be deleted. |
Returns
| Type | Description |
|---|---|
| IExecutableBuilder | An Umbraco.Cms.Infrastructure.Migrations.Expressions.IExecutableBuilder to execute the delete operation. |
OnTable(string)
Specifies the table containing the default constraint to delete.
Declaration
public IDeleteDefaultConstraintOnColumnBuilder OnTable(string tableName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tableName | The name of the table containing the constraint to delete. |
Returns
| Type | Description |
|---|---|
| IDeleteDefaultConstraintOnColumnBuilder | An IDeleteDefaultConstraintOnColumnBuilder that can be used to specify the column. |