Condividi tramite


MigrationsSqlGenerator.ForeignKeyConstraint Metodo

Definizione

Genera un frammento SQL per un vincolo di chiave esterna di un AddForeignKeyOperationoggetto .

protected virtual void ForeignKeyConstraint (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void ForeignKeyConstraint (Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member ForeignKeyConstraint : Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.ForeignKeyConstraint : Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub ForeignKeyConstraint (operation As AddForeignKeyOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametri

operation
AddForeignKeyOperation

Operazione.

model
IModel

Modello di destinazione che può essere null se le operazioni esistono senza un modello.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per aggiungere il frammento SQL.

Si applica a