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
屬性

方法

GetDependentKeyValueFactory<TKey>(IForeignKey)
已淘汰.

根據從各種實體資料形式取得的外鍵值,建立索引鍵值的處理站。

這個方法通常由資料庫提供者使用, (和其他延伸模組) 。 它通常不會用於應用程式程式碼中。

GetNavigation(IForeignKey, Boolean)
已淘汰.

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

GetRelatedEntityType(IForeignKey, IEntityType)
已淘汰.

取得與指定實體類型相關的實體類型。

IsBaseLinking(IForeignKey)
已淘汰.

傳回值,指出外鍵是否定義在主鍵上,並指向相同的主鍵。

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

建立人類可讀取的指定中繼資料標記法。

警告:不要依賴傳回字串的格式。 它專為偵錯而設計,而且可能會在發行之間任意變更。

適用於