다음을 통해 공유


MigrationsSqlGenerator.ForeignKeyConstraint 메서드

정의

의 외래 키 제약 조건에 대한 SQL 조각을 생성합니다 AddForeignKeyOperation.

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)

매개 변수

operation
AddForeignKeyOperation

작업입니다.

model
IModel

모델이 없는 작업이 있는 경우일 null 수 있는 대상 모델입니다.

builder
MigrationCommandListBuilder

SQL 조각을 추가하는 데 사용할 명령 작성기입니다.

적용 대상