語言

KeyExtensions.GetReferencingForeignKeys(IKey) 方法

定義

取得所有針對特定主鍵或備用鍵的外鍵。

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

參數

key
IKey

尋找外來金鑰的鑰匙。

傳回

這些外鍵會參考給定的金鑰。

適用於