SqlServerMigrationsSqlGenerator.CreateIndexes 方法

定义

重载

CreateIndexes(IProperty, MigrationCommandListBuilder)
CreateIndexes(IEnumerable<IIndex>, MigrationCommandListBuilder)

生成 SQL 以创建给定索引。

CreateIndexes(IEnumerable<ITableIndex>, MigrationCommandListBuilder)

生成 SQL 以创建给定索引。

CreateIndexes(IProperty, MigrationCommandListBuilder)

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

参数

property
IProperty

适用于

CreateIndexes(IEnumerable<IIndex>, MigrationCommandListBuilder)

生成 SQL 以创建给定索引。

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

参数

indexes
IEnumerable<IIndex>

要创建的索引。

builder
MigrationCommandListBuilder

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

适用于

CreateIndexes(IEnumerable<ITableIndex>, MigrationCommandListBuilder)

生成 SQL 以创建给定索引。

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

参数

indexes
IEnumerable<ITableIndex>

要创建的索引。

builder
MigrationCommandListBuilder

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

适用于