RuntimeSkipNavigation 類別

定義

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

public class RuntimeSkipNavigation : Microsoft.EntityFrameworkCore.Metadata.RuntimePropertyBase, Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeSkipNavigation
type RuntimeSkipNavigation = class
    inherit RuntimePropertyBase
    interface IRuntimeSkipNavigation
    interface ISkipNavigation
    interface IReadOnlySkipNavigation
    interface IReadOnlyNavigationBase
    interface IReadOnlyPropertyBase
    interface IReadOnlyAnnotatable
    interface INavigationBase
    interface IPropertyBase
    interface IAnnotatable
Public Class RuntimeSkipNavigation
Inherits RuntimePropertyBase
Implements IRuntimeSkipNavigation
繼承
實作

備註

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

建構函式

RuntimeSkipNavigation(String, Type, PropertyInfo, FieldInfo, RuntimeEntityType, RuntimeEntityType, RuntimeForeignKey, Boolean, Boolean, PropertyAccessMode, Boolean)

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

RuntimeSkipNavigation(String, Type, PropertyInfo, FieldInfo, RuntimeEntityType, RuntimeEntityType, RuntimeForeignKey, Boolean, Boolean, PropertyAccessMode, Boolean, Boolean)

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

屬性

ClrType

取得這個導覽所保留的值型別。

DebugView

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

DeclaringEntityType

取得此屬性所屬的型別。

DeclaringType

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

DeclaringType

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

(繼承來源 RuntimePropertyBase)
Inverse

取得或設定反向導覽。

IsReadOnly

指出目前物件是否為唯讀。

(繼承來源 AnnotatableBase)
Item[String]

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

(繼承來源 AnnotatableBase)
Name

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

(繼承來源 RuntimePropertyBase)
Sentinel

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

Sentinel

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

(繼承來源 RuntimePropertyBase)
TargetEntityType

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

方法

AddAnnotation(String, Annotation)

將批註加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

(繼承來源 AnnotatableBase)
AddAnnotation(String, Object)

將批註加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

(繼承來源 AnnotatableBase)
AddAnnotations(IEnumerable<IAnnotation>)

將批註加入至這個物件。

(繼承來源 AnnotatableBase)
AddAnnotations(IReadOnlyDictionary<String,Object>)

將批註加入至這個物件。

(繼承來源 AnnotatableBase)
AddRuntimeAnnotation(String, Annotation)

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

(繼承來源 AnnotatableBase)
AddRuntimeAnnotation(String, Object)

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

(繼承來源 AnnotatableBase)
AddRuntimeAnnotations(IEnumerable<Annotation>)

將執行時間批註加入至這個物件。

(繼承來源 AnnotatableBase)
AddRuntimeAnnotations(IReadOnlyDictionary<String,Object>)

將執行時間批註加入至這個物件。

(繼承來源 AnnotatableBase)
CreateAnnotation(String, Object)

建立新的批註。

(繼承來源 AnnotatableBase)
CreateRuntimeAnnotation(String, Object)

建立新的執行時間批註。

(繼承來源 AnnotatableBase)
EnsureMutable()

如果模型是唯讀的,則會擲回 。

(繼承來源 AnnotatableBase)
EnsureReadOnly()

如果模型不是唯讀,則會擲回 。

(繼承來源 AnnotatableBase)
FindAnnotation(String)

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

(繼承來源 AnnotatableBase)
FindRuntimeAnnotation(String)

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

(繼承來源 AnnotatableBase)
GetAnnotation(String)

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

(繼承來源 AnnotatableBase)
GetAnnotations()

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

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

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

(繼承來源 AnnotatableBase)
GetRuntimeAnnotations()

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

(繼承來源 AnnotatableBase)
OnAnnotationSet(String, Annotation, Annotation)

設定或移除批註時呼叫。

(繼承來源 AnnotatableBase)
RemoveAnnotation(String)

從這個 物件中移除指定的注釋。

(繼承來源 AnnotatableBase)
RemoveRuntimeAnnotation(String)

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

(繼承來源 AnnotatableBase)
SetAccessors(PropertyAccessors)

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

(繼承來源 RuntimePropertyBase)
SetAnnotation(String, Annotation, Annotation)

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

(繼承來源 AnnotatableBase)
SetAnnotation(String, Object)

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

(繼承來源 AnnotatableBase)
SetGetter<TEntity,TStructuralType,TValue>(Func<TEntity,TValue>, Func<TEntity,Boolean>, Func<TStructuralType,TValue>, Func<TStructuralType,Boolean>)

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

(繼承來源 RuntimePropertyBase)
SetRuntimeAnnotation(String, Annotation, Annotation)

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

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

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

(繼承來源 AnnotatableBase)
SetSetter<TEntity,TValue>(Action<TEntity,TValue>)

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

(繼承來源 RuntimePropertyBase)
ToString()

傳回代表目前物件的字串。

明確介面實作

IAnnotatable.AddRuntimeAnnotation(String, Object)

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

(繼承來源 AnnotatableBase)
IAnnotatable.FindRuntimeAnnotation(String)

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

(繼承來源 AnnotatableBase)
IAnnotatable.GetRuntimeAnnotations()

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

(繼承來源 AnnotatableBase)
IAnnotatable.RemoveRuntimeAnnotation(String)

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

(繼承來源 AnnotatableBase)
IAnnotatable.SetRuntimeAnnotation(String, Object)

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

(繼承來源 AnnotatableBase)
INavigationBase.GetCollectionAccessor()

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

IPropertyBase.GetCurrentValueComparer()

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

(繼承來源 RuntimePropertyBase)
IPropertyBase.GetGetter()

取得用於 IClrPropertyGetter 讀取此屬性值的 。

(繼承來源 RuntimePropertyBase)
IReadOnlyAnnotatable.FindAnnotation(String)

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

(繼承來源 AnnotatableBase)
IReadOnlyAnnotatable.GetAnnotations()

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

(繼承來源 AnnotatableBase)
IReadOnlyAnnotatable.Item[String]

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

(繼承來源 AnnotatableBase)
IReadOnlyNavigationBase.DeclaringEntityType

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

IReadOnlyNavigationBase.IsCollection

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

IReadOnlyNavigationBase.TargetEntityType

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

IReadOnlyPropertyBase.ClrType

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

(繼承來源 RuntimePropertyBase)
IReadOnlyPropertyBase.DeclaringType

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

(繼承來源 RuntimePropertyBase)
IReadOnlyPropertyBase.FieldInfo

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

(繼承來源 RuntimePropertyBase)
IReadOnlyPropertyBase.GetPropertyAccessMode()

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

(繼承來源 RuntimePropertyBase)
IReadOnlyPropertyBase.PropertyInfo

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

(繼承來源 RuntimePropertyBase)
IReadOnlySkipNavigation.ForeignKey

取得聯結類型的外鍵。

IReadOnlySkipNavigation.Inverse

取得反向略過導覽。

IReadOnlySkipNavigation.IsOnDependent

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

IRuntimePropertyBase.Accessors

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

(繼承來源 RuntimePropertyBase)
IRuntimePropertyBase.GetSetter()

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

(繼承來源 RuntimePropertyBase)
IRuntimePropertyBase.MaterializationSetter

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

(繼承來源 RuntimePropertyBase)
IRuntimePropertyBase.PropertyIndexes

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

(繼承來源 RuntimePropertyBase)
IRuntimePropertyBase.Setter

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

(繼承來源 RuntimePropertyBase)
IRuntimeSkipNavigation.GetManyToManyLoader()

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

擴充方法

AnnotationsToDebugString(IAnnotatable, Int32)

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

SetIsLoadedWhenNoTracking(INavigationBase, Object)

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

GetCurrentValueComparer(IPropertyBase)

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

GetGetter(IPropertyBase)

取得用於 IClrPropertyGetter 讀取此屬性值的 。

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

GetIndex(IPropertyBase)

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

GetMemberInfo(IPropertyBase, Boolean, Boolean)

取得 或 FieldInfoPropertyInfo 應該用來取得或設定指定屬性的值。

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

IsIndexerProperty(IPropertyBase)

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

IsShadowProperty(IPropertyBase)
已過時。.

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

GetDataAnnotations(ISkipNavigation, IAnnotationCodeGenerator)

取得資料批註,以設定略過導覽屬性。

IsLeftNavigation(ISkipNavigation)

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

適用於