語言

ForeignKeyExtensions 類別

定義

警告

Use IReadOnlyForeignKey

的 IReadOnlyForeignKey擴展方法 。

public static class ForeignKeyExtensions
[System.Obsolete("Use IReadOnlyForeignKey")]
public static class ForeignKeyExtensions
type ForeignKeyExtensions = class
[<System.Obsolete("Use IReadOnlyForeignKey")>]
type ForeignKeyExtensions = class
Public Module ForeignKeyExtensions
Public Class ForeignKeyExtensions
繼承
ForeignKeyExtensions
屬性

方法

名稱 Description
GetDependentKeyValueFactory<TKey>(IForeignKey)
已淘汰.

根據從各種實體資料取得的外鍵值,建立一個金鑰工廠。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

GetNavigation(IForeignKey, Boolean)
已淘汰.

回傳與此外鍵相關的導覽。

GetRelatedEntityType(IForeignKey, IEntityType)
已淘汰.

取得與該實體相關的實體類型。

IsBaseLinking(IForeignKey)
已淘汰.

回傳一個值,表示外鍵是否定義在主鍵上,且指向同一主鍵。

ToDebugString(IForeignKey, MetadataDebugStringOptions, Int32)
已淘汰.

建立給定元資料的可讀表示法。

警告:請勿依賴回傳字串的格式。 它僅設計用於除錯,且可能在不同版本間任意變動。

適用於