Sprache

MigrationsSqlGenerator.IndexTraits Methode

Definition

Generiert ein SQL-Fragment für Eigenschaften eines Indexes aus einem CreateIndexOperation, AddPrimaryKeyOperationoder AddUniqueConstraintOperation.

protected virtual void IndexTraits(Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void IndexTraits(Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member IndexTraits : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.IndexTraits : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable 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: