RuntimeEntityType.IReadOnlyEntityType.FindDeclaredNavigation(String) 方法

定义

获取给定实体类型上的导航属性。 不返回在基类型上定义的导航属性。 null如果未找到导航属性,则返回 。

[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigation? IReadOnlyEntityType.FindDeclaredNavigation (string name);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigation IReadOnlyEntityType.FindDeclaredNavigation (string name);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType.FindDeclaredNavigation : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigation
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType.FindDeclaredNavigation : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigation
Function FindDeclaredNavigation (name As String) As IReadOnlyNavigation Implements IReadOnlyEntityType.FindDeclaredNavigation

参数

name
String

实体类上的导航属性的名称。

返回

导航属性,如果未找到,则为 。null

实现

属性

适用于