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 片段的命令生成器。

适用于