共用方式為


RelationalForeignKeyExtensions.GetMappedConstraints(IForeignKey) 方法

定義

取得外鍵所對應的外鍵條件約束。

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint> GetMappedConstraints (this Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey);
static member GetMappedConstraints : Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint>
<Extension()>
Public Function GetMappedConstraints (foreignKey As IForeignKey) As IEnumerable(Of IForeignKeyConstraint)

參數

foreignKey
IForeignKey

外部索引鍵。

傳回

外鍵所對應的外鍵條件約束。

適用於