Condividi tramite


MigrationsSqlGenerator.IndexOptions Metodo

Definizione

Genera un frammento SQL per elementi aggiuntivi (filtro, colonne incluse, opzioni) di un indice da un CreateIndexOperationoggetto .

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)

Parametri

operation
CreateIndexOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per aggiungere il frammento SQL.

Si applica a