Share via


SqlServerMigrationsSqlGenerator.IndexTraits Method

Definition

Generates a SQL fragment for traits of an index from a CreateIndexOperation, AddPrimaryKeyOperation, or AddUniqueConstraintOperation.

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)

Parameters

operation
MigrationOperation

The operation.

model
IModel

The target model which may be null if the operations exist without a model.

builder
MigrationCommandListBuilder

The command builder to use to add the SQL fragment.

Applies to