共用方式為


MutableKeyExtensions.GetReferencingForeignKeys(IMutableKey) 方法

定義

取得以指定主要或替代索引鍵為目標的所有外鍵。

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey> GetReferencingForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IMutableKey key);
static member GetReferencingForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IMutableKey -> seq<Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey>
<Extension()>
Public Function GetReferencingForeignKeys (key As IMutableKey) As IEnumerable(Of IMutableForeignKey)

參數

key
IMutableKey

要為其尋找外鍵的索引鍵。

傳回

參考指定索引鍵的外鍵。

適用於