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)

调用 SetLoaded(Object, String, Boolean)INavigationBase 在无跟踪查询预先加载此关系时将其标记为已加载。

GetCurrentValueComparer(IPropertyBase)

IComparer<T>获取用于比较跟踪IUpdateEntry条目中的值的 。

GetGetter(IPropertyBase)

获取 IClrPropertyGetter 用于读取此属性的值的 。

请注意,为阴影属性 IsShadowProperty(IPropertyBase) 调用此方法 () 是错误的,因为此类属性没有关联的 MemberInfo

GetIndex(IPropertyBase)

获取此属性的属性索引。

GetMemberInfo(IPropertyBase, Boolean, Boolean)

PropertyInfo获取应用于获取或设置给定属性的值的 或 FieldInfo

请注意,为阴影属性 IsShadowProperty(IPropertyBase) 调用此方法 () 是错误的,因为此类属性没有关联的 MemberInfo

IsIndexerProperty(IPropertyBase)

获取一个值,该值指示这是否为索引器属性。 索引器属性是通过实体类上的索引器访问的属性。

IsShadowProperty(IPropertyBase)
已过时。.

获取一个值,该值指示此是否为阴影属性。 阴影属性是实体类中没有相应属性的属性。 属性的当前值存储在 中, ChangeTracker 而不是存储在实体类的实例中。

GetDataAnnotations(ISkipNavigation, IAnnotationCodeGenerator)

获取用于配置 skip 导航属性的数据注释。

IsLeftNavigation(ISkipNavigation)

获取一个值,该值指示指定的跳过导航是否表示关系的左侧。

适用于