Class DeleteIndexBuilder
Provides a builder for constructing expressions that define the deletion of an index in a database migration.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Index
Assembly: Umbraco.Infrastructure.dll
Syntax
public class DeleteIndexBuilder : ExpressionBuilderBase<DeleteIndexExpression>, IDeleteIndexForTableBuilder, IFluentBuilder, IExecutableBuilder
Constructors
View SourceDeleteIndexBuilder(DeleteIndexExpression)
Initializes a new instance of the DeleteIndexBuilder class with the specified delete index expression.
Declaration
public DeleteIndexBuilder(DeleteIndexExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteIndexExpression | expression | The DeleteIndexExpression that defines the index to be deleted. |
Methods
View SourceDo()
Executes.
Declaration
public void Do()
OnTable(string)
Specifies the table on which the index to be deleted exists.
Declaration
public IExecutableBuilder OnTable(string tableName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tableName | The name of the table containing the index. |
Returns
| Type | Description |
|---|---|
| IExecutableBuilder | An executable builder to continue the migration expression. |