Partilhar via


MigrationsSqlGenerator.IndexOptions Método

Definição

Gera um fragmento SQL para extras (filtro, colunas incluídas, opções) de um índice de um CreateIndexOperation.

protected virtual void IndexOptions (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void IndexOptions (Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member IndexOptions : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.IndexOptions : Microsoft.EntityFrameworkCore.Migrations.Operations.CreateIndexOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub IndexOptions (operation As CreateIndexOperation, model As IModel, builder As MigrationCommandListBuilder)

Parâmetros

operation
CreateIndexOperation

A operação.

model
IModel

O modelo de destino que pode ser null se as operações existirem sem um modelo.

builder
MigrationCommandListBuilder

O construtor de comandos a ser usado para adicionar o fragmento sql.

Aplica-se a