Sdílet prostřednictvím


SqlServerMigrationsSqlGenerator.IndexTraits Metoda

Definice

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

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