KeyExtensions.GetReferencingForeignKeys(IKey) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得所有針對特定主鍵或備用鍵的外鍵。
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
尋找外來金鑰的鑰匙。
傳回
這些外鍵會參考給定的金鑰。