共用方式為


SqlServerMigrationsSqlGenerator.IndexOptions 方法

定義

針對 (篩選準則、內含資料行、索引的選項) CreateIndexOperation ,產生 SQL 片段。

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)

參數

operation
CreateIndexOperation

作業。

model
IModel

目標模型,如果 null 作業不存在模型,則可能是 。

builder
MigrationCommandListBuilder

用來加入 SQL 片段的命令產生器。

適用於