Share via


SqlServerMigrationsSqlGenerator.IndexTraits Methode

Definition

Generiert ein SQL-Fragment für Merkmale eines Indexes aus , CreateIndexOperationAddPrimaryKeyOperationoder 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 kann, wenn die Vorgänge ohne Modell vorhanden sind null .

builder
MigrationCommandListBuilder

Der Befehls-Generator, mit dem das SQL-Fragment hinzugefügt werden soll.

Gilt für: