Sdílet prostřednictvím


MigrationsSqlGenerator.IndexTraits Metoda

Definice

Generuje fragment SQL pro vlastnosti indexu z CreateIndexOperation, AddPrimaryKeyOperationnebo 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)

Parametry

operation
MigrationOperation

Operace.

model
IModel

Cílový model, který může být null , pokud operace existují bez modelu.

builder
MigrationCommandListBuilder

Tvůrce příkazů, který se má použít k přidání fragmentu SQL.

Platí pro