SqlServerMigrationsSqlGenerator.CreateIndexes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateIndexes(IProperty, MigrationCommandListBuilder) | |
CreateIndexes(IEnumerable<IIndex>, MigrationCommandListBuilder) |
Generates SQL to create the given indexes. |
CreateIndexes(IEnumerable<ITableIndex>, MigrationCommandListBuilder) |
Generates SQL to create the given indexes. |
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)
Parameters
- property
- IProperty
- builder
- MigrationCommandListBuilder
Applies to
CreateIndexes(IEnumerable<IIndex>, MigrationCommandListBuilder)
Generates SQL to create the given indexes.
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)
Parameters
- indexes
- IEnumerable<IIndex>
The indexes to create.
- builder
- MigrationCommandListBuilder
The command builder to use to build the commands.
Applies to
CreateIndexes(IEnumerable<ITableIndex>, MigrationCommandListBuilder)
Generates SQL to create the given indexes.
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)
Parameters
- indexes
- IEnumerable<ITableIndex>
The indexes to create.
- builder
- MigrationCommandListBuilder
The command builder to use to build the commands.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för