SqlServerMigrationsSqlGenerator.IndexTraits 方法

定义

CreateIndexOperationAddPrimaryKeyOperationAddUniqueConstraintOperation为索引的特征生成 SQL 片段。

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

参数

operation
MigrationOperation

操作。

model
IModel

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

builder
MigrationCommandListBuilder

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

适用于