Share via


MigrationBuilder.DropIndex(String, String, String) Method

Definition

Builds a DropIndexOperation to drop an existing index.

public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation> DropIndex (string name, string table = default, string schema = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation> DropIndex (string name, string? table = default, string? schema = default);
abstract member DropIndex : string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation>
override this.DropIndex : string * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.DropIndexOperation>
Public Overridable Function DropIndex (name As String, Optional table As String = Nothing, Optional schema As String = Nothing) As OperationBuilder(Of DropIndexOperation)

Parameters

name
String

The name of the index to drop.

table
String

The table that contains the index.

schema
String

The schema that contains the table, or null to use the default schema.

Returns

A builder to allow annotations to be added to the operation.

Remarks

See Database migrations for more information and examples.

Applies to