共用方式為


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

外部索引鍵。

傳回

作業。

適用於