Bagikan melalui


SqlServerMigrationsSqlGenerator.IndexOptions Metode

Definisi

Menghasilkan fragmen SQL untuk ekstra (filter, kolom yang disertakan, opsi) indeks dari CreateIndexOperation.

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

Parameter

operation
CreateIndexOperation

Operasi.

model
IModel

Model target yang mungkin null jika operasi ada tanpa model.

builder
MigrationCommandListBuilder

Penyusun perintah yang digunakan untuk menambahkan fragmen SQL.

Berlaku untuk