Class DeleteIndexExpression
Represents a migration expression that specifies the deletion of a database index. Used during schema migrations to remove an existing index from a database table.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Expressions
Assembly: Umbraco.Infrastructure.dll
Syntax
public class DeleteIndexExpression : MigrationExpressionBase, IMigrationExpression
Constructors
View SourceDeleteIndexExpression(IMigrationContext)
Initializes a new instance of the DeleteIndexExpression class with the specified migration context.
Declaration
public DeleteIndexExpression(IMigrationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationContext | context | The IMigrationContext to use for the delete index operation. |
DeleteIndexExpression(IMigrationContext, IndexDefinition)
Initializes a new instance of the DeleteIndexExpression class.
Declaration
public DeleteIndexExpression(IMigrationContext context, IndexDefinition index)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationContext | context | The IMigrationContext for the migration operation. |
| IndexDefinition | index | The IndexDefinition representing the index to be deleted. |
Properties
View SourceIndex
Gets the index definition to be deleted.
Declaration
public IndexDefinition Index { get; }
Property Value
| Type | Description |
|---|---|
| IndexDefinition |
Methods
View SourceGetSql()
Declaration
protected override string GetSql()
Returns
| Type | Description |
|---|---|
| string |