共用方式為


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)

來源:
SqlServerMigrationsSqlGenerator.cs
來源:
SqlServerMigrationsSqlGenerator.cs
來源:
SqlServerMigrationsSqlGenerator.cs
來源:
SqlServerMigrationsSqlGenerator.cs

產生 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)

來源:
SqlServerMigrationsSqlGenerator.cs
來源:
SqlServerMigrationsSqlGenerator.cs
來源:
SqlServerMigrationsSqlGenerator.cs
來源:
SqlServerMigrationsSqlGenerator.cs
來源:
SqlServerMigrationsSqlGenerator.cs

產生 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

用來建置命令的命令產生器。

適用於