共用方式為


MigrationBuilder.DropIndex(String, String, String) 方法

定義

建置 以 DropIndexOperation 卸載現有的索引。

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)

參數

name
String

要卸載之索引的名稱。

table
String

包含索引的資料表。

schema
String

包含資料表的架構,或使用 null 預設架構。

傳回

允許將批註加入至作業的產生器。

備註

如需詳細資訊和範例 ,請參閱資料庫移轉

適用於