SqlServerMigrationsSqlGenerator.IndexTraits Yöntem

Tanım

bir , AddPrimaryKeyOperationveya AddUniqueConstraintOperationdizininden bir dizinin özellikleri için bir CreateIndexOperationSQL parçası oluşturur.

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)

Parametreler

operation
MigrationOperation

İşlem.

model
IModel

İşlemlerin bir model olmadan mevcut olması null durumunda olabilecek hedef model.

builder
MigrationCommandListBuilder

SQL parçasını eklemek için kullanılacak komut oluşturucu.

Şunlara uygulanır