IConventionNavigation 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示可用于导航关系的导航属性。
public interface IConventionNavigation : Microsoft.EntityFrameworkCore.Metadata.IConventionPropertyBase, Microsoft.EntityFrameworkCore.Metadata.INavigation
public interface IConventionNavigation : Microsoft.EntityFrameworkCore.Metadata.IConventionNavigationBase, Microsoft.EntityFrameworkCore.Metadata.INavigation
public interface IConventionNavigation : Microsoft.EntityFrameworkCore.Metadata.IConventionNavigationBase, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigation
type IConventionNavigation = interface
interface INavigation
interface IPropertyBase
interface IAnnotatable
interface IConventionPropertyBase
interface IConventionAnnotatable
type IConventionNavigation = interface
interface INavigation
interface INavigationBase
interface IPropertyBase
interface IAnnotatable
interface IConventionNavigationBase
interface IConventionPropertyBase
interface IConventionAnnotatable
type IConventionNavigation = interface
interface IReadOnlyNavigation
interface IReadOnlyNavigationBase
interface IReadOnlyPropertyBase
interface IReadOnlyAnnotatable
interface IConventionNavigationBase
interface IConventionPropertyBase
interface IConventionAnnotatable
Public Interface IConventionNavigation
Implements IConventionPropertyBase, INavigation
Public Interface IConventionNavigation
Implements IConventionNavigationBase, INavigation
Public Interface IConventionNavigation
Implements IConventionNavigationBase, IReadOnlyNavigation
- 实现
注解
此接口在模型创建期间使用,并允许修改元数据。 生成模型后, INavigation 表示相同元数据的只读视图。
有关详细信息和示例,请参阅 模型生成约定 。
属性
Builder |
获取可用于配置此导航的生成器。 |
ClrType |
获取此类似属性的对象包含的值的类型。 (继承自 IReadOnlyPropertyBase) |
DeclaringEntityType |
获取此导航属性所属的类型。 |
DeclaringType |
获取此属性类对象所属的类型。 (继承自 IReadOnlyPropertyBase) |
FieldInfo |
FieldInfo获取此属性类似对象的基础 CLR 字段的 。
这可能 |
ForeignKey |
获取定义此导航属性将导航的关系的外键。 |
Inverse |
获取反向导航。 |
IsCollection |
获取一个值,该值指示导航属性是否为集合属性。 (继承自 IReadOnlyNavigationBase) |
IsEagerLoaded |
获取一个值,该值指示默认情况下是否应预先加载此导航。 (继承自 IReadOnlyNavigationBase) |
IsInModel |
指示此对象是否在模型中,即尚未从模型中删除。 (继承自 IConventionAnnotatable) |
IsOnDependent |
获取一个值,该值指示导航属性是否在基础外键的依赖端定义。 (继承自 IReadOnlyNavigation) |
Item[String] |
获取具有给定名称的批注的值,如果不存在,则返回 |
LazyLoadingEnabled |
确定如果启用了延迟加载并且模型中配置了延迟加载机制,则此导航是否应延迟加载。 (继承自 IReadOnlyNavigationBase) |
Name |
获取此属性类似对象的名称。 (继承自 IReadOnlyPropertyBase) |
PropertyInfo |
PropertyInfo获取类似于此属性的对象的基础 CLR 属性的 。
这可能 |
Sentinel |
获取 sentinel 值,该值指示未设置此属性。 (继承自 IReadOnlyPropertyBase) |
TargetEntityType |
获取此导航属性将保存实例 () 的实体类型。 |