MigrationsSqlGenerator.ForeignKeyConstraint Yöntem

Tanım

bir yabancı anahtar kısıtlaması için bir AddForeignKeyOperationSQL parçası oluşturur.

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)

Parametreler

operation
AddForeignKeyOperation

İş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