EntityTypeExtensions.FindDeclaredNavigation(IEntityType, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取给定实体类型上的导航属性。 不返回在基类型上定义的导航属性。
null
如果未找到导航属性,则返回 。
public static Microsoft.EntityFrameworkCore.Metadata.INavigation FindDeclaredNavigation (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, string name);
static member FindDeclaredNavigation : Microsoft.EntityFrameworkCore.Metadata.IEntityType * string -> Microsoft.EntityFrameworkCore.Metadata.INavigation
<Extension()>
Public Function FindDeclaredNavigation (entityType As IEntityType, name As String) As INavigation
参数
- entityType
- IEntityType
实体类型。
- name
- String
实体类上的导航属性的名称。
返回
导航属性;如果未找到导航属性, null
则为 。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈