语言

MigrationsSqlGenerator.GenerateIndexColumnList 方法

定义

从 a CreateIndexOperation. 返回索引的列列表的 SQL 片段。

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

参数

operation
CreateIndexOperation

操作。

model
IModel

目标模型,如果 null 操作不存在,则为没有模型。

builder
MigrationCommandListBuilder

用于添加 SQL 片段的命令生成器。

适用于