AddForeignKeyOperation.CreateFrom(IForeignKeyConstraint) 方法

定义

AddForeignKeyOperation从指定的外键创建新的 。

public static Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation CreateFrom (Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint foreignKey);
static member CreateFrom : Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint -> Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation
Public Shared Function CreateFrom (foreignKey As IForeignKeyConstraint) As AddForeignKeyOperation

参数

foreignKey
IForeignKeyConstraint

外键。

返回

操作。

适用于