SqlServerMigrationsSqlGenerator.DropIndexes 方法

定义

重载

DropIndexes(IEnumerable<IIndex>, MigrationCommandListBuilder)

生成 SQL 以删除给定索引。

DropIndexes(IEnumerable<ITableIndex>, MigrationCommandListBuilder)

生成 SQL 以删除给定索引。

DropIndexes(IProperty, MigrationCommandListBuilder)

DropIndexes(IEnumerable<IIndex>, MigrationCommandListBuilder)

生成 SQL 以删除给定索引。

protected virtual void DropIndexes (System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IIndex> indexes, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member DropIndexes : seq<Microsoft.EntityFrameworkCore.Metadata.IIndex> * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.DropIndexes : seq<Microsoft.EntityFrameworkCore.Metadata.IIndex> * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub DropIndexes (indexes As IEnumerable(Of IIndex), builder As MigrationCommandListBuilder)

参数

indexes
IEnumerable<IIndex>

要删除的索引。

builder
MigrationCommandListBuilder

用于生成命令的命令生成器。

适用于

DropIndexes(IEnumerable<ITableIndex>, MigrationCommandListBuilder)

生成 SQL 以删除给定索引。

protected virtual void DropIndexes (System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.ITableIndex> indexes, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member DropIndexes : seq<Microsoft.EntityFrameworkCore.Metadata.ITableIndex> * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.DropIndexes : seq<Microsoft.EntityFrameworkCore.Metadata.ITableIndex> * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub DropIndexes (indexes As IEnumerable(Of ITableIndex), builder As MigrationCommandListBuilder)

参数

indexes
IEnumerable<ITableIndex>

要删除的索引。

builder
MigrationCommandListBuilder

用于生成命令的命令生成器。

适用于

DropIndexes(IProperty, MigrationCommandListBuilder)

protected virtual void DropIndexes (Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member DropIndexes : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.DropIndexes : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub DropIndexes (property As IProperty, builder As MigrationCommandListBuilder)

参数

property
IProperty

适用于