語言

IReadOnlySkipNavigation 介面

定義

代表一個導航屬性,屬於一個關係的一部分,該關係會透過第三個實體類型轉發。

public interface IReadOnlySkipNavigation : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigationBase
type IReadOnlySkipNavigation = interface
    interface IReadOnlyNavigationBase
    interface IReadOnlyPropertyBase
    interface IReadOnlyAnnotatable
Public Interface IReadOnlySkipNavigation
Implements IReadOnlyNavigationBase
衍生
實作

備註

更多資訊與範例請參閱 建模實體類型與關係 。

屬性

名稱 Description
ClrType

取得這個類屬性物件所持有的值類型。

(繼承來源 IReadOnlyPropertyBase)
DeclaringEntityType

取得該導航屬性所屬的實體類型。

(繼承來源 IReadOnlyNavigationBase)
DeclaringType

取得這個類性質物件所屬的類型。

(繼承來源 IReadOnlyPropertyBase)
FieldInfo

取得這個類屬性物件底層 CLR 欄位的 。FieldInfo 這可能是 null 為了陰影性質,或是當背景場未知時。

(繼承來源 IReadOnlyPropertyBase)
ForeignKey

取得連接型別的外鍵。

Inverse

有反向跳過導航。

IsCollection

會得到一個值,表示該屬性是否為集合。

(繼承來源 IReadOnlyPropertyBase)
IsEagerLoaded

會取得一個值,指示此導航是否應該預設為急載。

(繼承來源 IReadOnlyNavigationBase)
IsOnDependent

獲得一個值,表示導航性質是否定義在底層外鍵的依賴端。

Item[String]

取得帶有名稱的註解值,若不存在則回 null 傳。

(繼承來源 IReadOnlyAnnotatable)
JoinEntityType

取得外鍵所使用的連接型別。

LazyLoadingEnabled

判斷若啟用怠載且模型中已配置緩載機制,是否應進行此導航。

(繼承來源 IReadOnlyNavigationBase)
Name

取得這個類性質物件的名稱。

(繼承來源 IReadOnlyPropertyBase)
PropertyInfo

取得該類性質物件底層 CLR 屬性的 。PropertyInfo 這可能是 null 用於陰影屬性,或是直接映射到欄位。

(繼承來源 IReadOnlyPropertyBase)
Sentinel

取得哨兵值,表示此屬性未被設定。

(繼承來源 IReadOnlyPropertyBase)
TargetEntityType

取得這個導航屬性將承載實例的實體類型。

(繼承來源 IReadOnlyNavigationBase)

方法

名稱 Description
AnnotationsToDebugString(Int32)

取得物件上所有宣告註解的除錯字串。

(繼承來源 IReadOnlyAnnotatable)
FindAnnotation(String)

取得帶有名字的註解,若不存在則回 null 傳。

(繼承來源 IReadOnlyAnnotatable)
GetAnnotation(String)

取得帶有名稱的註解,若不存在則拋出。

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

取得目前物件的所有註解。

(繼承來源 IReadOnlyAnnotatable)
GetFieldName()

取得該性質的背地名稱,或 null 若底盤不已知則得出。

(繼承來源 IReadOnlyPropertyBase)
GetPropertyAccessMode()

被 PropertyAccessMode 用來做這個類似性質的物件。

(繼承來源 IReadOnlyPropertyBase)
IsIndexerProperty()

會得到一個值,表示這是否屬於索引器屬性。 索引器屬性是指透過實體類別上的索引器存取的屬性。

(繼承來源 IReadOnlyPropertyBase)
IsShadowProperty()

會得到一個值,表示這是否是影子屬性。 影子屬性是指在實體類別中沒有對應屬性的屬性。 屬性的當前值會儲存在實體 ChangeTracker 類別的實例中,而非儲存在實體類別的實例中。

(繼承來源 IReadOnlyPropertyBase)
ToDebugString(MetadataDebugStringOptions, Int32)

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

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

明確介面實作

名稱 Description
IReadOnlyNavigationBase.Inverse

會用反向導航。

IReadOnlyPropertyBase.IsShadowProperty()

會得到一個值,表示這是否是影子屬性。 影子屬性是指在實體類別中沒有對應屬性的屬性。 屬性的當前值會儲存在實體 ChangeTracker 類別的實例中,而非儲存在實體類別的實例中。

(繼承來源 IReadOnlyNavigationBase)

適用於