ISkipNavigation 介面

定義

表示導覽屬性,此屬性是透過第三個實體類型轉送之關聯性的一部分。

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

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

屬性

ClrType

取得這個類似屬性的物件所保存的值型別。

(繼承來源 IReadOnlyPropertyBase)
DeclaringEntityType

取得此導覽屬性所屬的實體類型。

DeclaringType

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

(繼承來源 IReadOnlyPropertyBase)
FieldInfo

FieldInfo取得此屬性類似物件之基礎 CLR 欄位的 。 這可能 null 適用于陰影屬性,或如果不知道支援欄位。

(繼承來源 IReadOnlyPropertyBase)
ForeignKey

取得聯結類型的外鍵。

Inverse

取得反向略過導覽。

IsCollection

取得值,指出導覽屬性是否為集合屬性。

(繼承來源 IReadOnlyNavigationBase)
IsEagerLoaded

取得值,指出此導覽是否應該預設為積極式載入。

(繼承來源 IReadOnlyNavigationBase)
IsOnDependent

取得值,指出巡覽屬性是否定義于基礎外鍵的相依端。

Item[String]

取得具有指定名稱之注釋的值,如果不存在,則傳 null 回 。

(繼承來源 IReadOnlyAnnotatable)
JoinEntityType

取得外鍵所使用的聯結類型。

LazyLoadingEnabled

判斷如果已啟用延遲載入,且模型中已設定延遲載入的機制,則決定是否應該延遲載入此流覽。

(繼承來源 IReadOnlyNavigationBase)
Name

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

(繼承來源 IReadOnlyPropertyBase)
PropertyInfo

PropertyInfo取得此屬性類似物件之基礎 CLR 屬性的 。 這可能 null 適用于陰影屬性,如果直接對應至欄位,則為 。

(繼承來源 IReadOnlyPropertyBase)
Sentinel

取得 sentinel 值,這個值表示這個屬性未設定。

(繼承來源 IReadOnlyPropertyBase)
TargetEntityType

取得這個導覽屬性將保存實例的實體類型, (的實例) 。

方法

AddRuntimeAnnotation(String, Object)

將執行時間批註新增至這個 物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

(繼承來源 IAnnotatable)
AnnotationsToDebugString(Int32)

取得 物件上宣告之所有注釋的偵錯字串。

(繼承來源 IReadOnlyAnnotatable)
FindAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則傳 null 回 。

(繼承來源 IReadOnlyAnnotatable)
FindRuntimeAnnotation(String)

取得具有指定名稱的執行時間批註,如果不存在,則 null 傳回 。

(繼承來源 IAnnotatable)
FindRuntimeAnnotationValue(String)

取得具有指定名稱的執行時間批註值,如果不存在,則傳 null 回 。

(繼承來源 IAnnotatable)
GetAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則會擲回。

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

取得目前 物件上的所有批註。

(繼承來源 IReadOnlyAnnotatable)
GetCollectionAccessor()

IClrCollectionAccessor取得這個導覽屬性的 ,如果是集合導覽。

(繼承來源 INavigationBase)
GetCurrentValueComparer()

取得 , IComparer<T> 用於比較追蹤 IUpdateEntry 專案中的值。

(繼承來源 IPropertyBase)
GetFieldName()

取得此屬性的支援欄位名稱,如果不知道支援欄位,則 null 為 。

(繼承來源 IReadOnlyPropertyBase)
GetGetter()

IClrPropertyGetter取得 ,用於讀取這個屬性的值。

(繼承來源 IPropertyBase)
GetIndex()

取得這個屬性的屬性索引。

(繼承來源 IPropertyBase)
GetMemberInfo(Boolean, Boolean)

取得 或 PropertyInfoFieldInfo ,這個值應該用來取得或設定指定屬性的值。

(繼承來源 IPropertyBase)
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

取得具有指定名稱的執行時間批註值,如果不存在,請加以新增。

(繼承來源 IAnnotatable)
GetPropertyAccessMode()

PropertyAccessMode取得用於這個屬性類似物件的 。

(繼承來源 IReadOnlyPropertyBase)
GetRuntimeAnnotations()

取得目前 物件上的所有執行時間批註。

(繼承來源 IAnnotatable)
IsIndexerProperty()

取得值,指出這個 是否為索引子屬性。 索引子屬性是透過實體類別上的索引子存取的屬性。

(繼承來源 IReadOnlyPropertyBase)
IsShadowProperty()

取得值,指出這個 是否為陰影屬性。 陰影屬性是實體類別中沒有對應屬性的陰影屬性。 屬性的目前值會儲存在 中 ChangeTracker ,而不是儲存在實體類別的實例中。

(繼承來源 IReadOnlyPropertyBase)
RemoveRuntimeAnnotation(String)

從這個 物件中移除指定的執行時間批註。

(繼承來源 IAnnotatable)
SetIsLoadedWhenNoTracking(Object)

呼叫 SetLoaded(Object, String, Boolean)INavigationBase 以在無追蹤查詢已積極載入此關聯性時將其標示為已載入。

(繼承來源 INavigationBase)
SetRuntimeAnnotation(String, Object)

設定儲存在指定索引鍵底下的執行時間批註。 如果具有指定名稱的注釋已經存在,則會覆寫現有的批註。

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

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

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

(繼承來源 IReadOnlySkipNavigation)

明確介面實作

INavigationBase.GetCollectionAccessor()

IClrCollectionAccessor取得這個導覽屬性的 ,如果是集合導覽。

INavigationBase.Inverse

取得反向導覽。

IPropertyBase.GetPropertyAccessMode()

PropertyAccessMode取得用於這個屬性的 。 null 表示正在使用預設屬性存取模式。

(繼承來源 INavigationBase)
IReadOnlyNavigationBase.Inverse

取得反向導覽。

(繼承來源 IReadOnlySkipNavigation)
IReadOnlyPropertyBase.IsShadowProperty()

取得值,指出這個 是否為陰影屬性。 陰影屬性是實體類別中沒有對應屬性的陰影屬性。 屬性的目前值會儲存在 中 ChangeTracker ,而不是儲存在實體類別的實例中。

(繼承來源 IReadOnlyNavigationBase)

擴充方法

AnnotationsToDebugString(IAnnotatable, Int32)

取得 物件上宣告之所有注釋的偵錯字串。

GetAnnotation(IAnnotatable, String)

取得具有指定名稱的注釋,如果不存在,則會擲回。

SetIsLoadedWhenNoTracking(INavigationBase, Object)

呼叫 SetLoaded(Object, String, Boolean)INavigationBase 以在無追蹤查詢已積極載入此關聯性時將其標示為已載入。

GetCurrentValueComparer(IPropertyBase)

取得 , IComparer<T> 用於比較追蹤 IUpdateEntry 專案中的值。

GetFieldName(IPropertyBase)

取得此屬性的支援欄位名稱,如果不知道支援欄位,則 null 為 。

GetGetter(IPropertyBase)

IClrPropertyGetter取得 ,用於讀取這個屬性的值。

請注意,針對陰影屬性呼叫這個方法 () IsShadowProperty(IPropertyBase) 是一個錯誤,因為這類屬性沒有相關聯的 MemberInfo

GetIndex(IPropertyBase)

取得這個屬性的屬性索引。

GetMemberInfo(IPropertyBase, Boolean, Boolean)

取得 或 PropertyInfoFieldInfo ,這個值應該用來取得或設定指定屬性的值。

請注意,針對陰影屬性呼叫這個方法 () IsShadowProperty(IPropertyBase) 是一個錯誤,因為這類屬性沒有相關聯的 MemberInfo

IsIndexerProperty(IPropertyBase)

取得值,指出這個 是否為索引子屬性。 索引子屬性是透過實體類別上的索引子存取的屬性。

IsShadowProperty(IPropertyBase)
已過時。.

取得值,指出這個 是否為陰影屬性。 陰影屬性是實體類別中沒有對應屬性的陰影屬性。 屬性的目前值會儲存在 中 ChangeTracker ,而不是儲存在實體類別的實例中。

GetDataAnnotations(ISkipNavigation, IAnnotationCodeGenerator)

取得要設定略過導覽屬性的資料批註。

IsLeftNavigation(ISkipNavigation)

取得值,指出指定的略過導覽是否代表關聯性的左邊。

ToDebugString(ISkipNavigation, MetadataDebugStringOptions, Int32)

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

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

適用於