Sprache

SqlServerMigrationsSqlGenerator.IndexTraits Methode

Definition

Generiert ein SQL-Fragment für Eigenschaften eines Indexes aus einem CreateIndexOperation, AddPrimaryKeyOperationoder 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)

Parameter

operation
MigrationOperation

Der Vorgang.

model
IModel

Das Zielmodell, das sein null kann, wenn die Vorgänge ohne Modell vorhanden sind.

builder
MigrationCommandListBuilder

Der Befehls-Generator, der zum Hinzufügen des SQL-Fragments verwendet werden soll.

Gilt für: