Compartir a través de


MigrationsSqlGenerator.IndexTraits Método

Definición

Genera un fragmento de SQL para rasgos de un índice a partir de , CreateIndexOperationAddPrimaryKeyOperationo 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)

Parámetros

operation
MigrationOperation

Operación.

model
IModel

Modelo de destino que puede ser null si las operaciones existen sin un modelo.

builder
MigrationCommandListBuilder

Generador de comandos que se va a usar para agregar el fragmento de SQL.

Se aplica a