IEntityType.FindNavigation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FindNavigation(MemberInfo) |
Gets a navigation property on the given entity type. Returns |
FindNavigation(String) |
Gets a navigation property on the given entity type. Returns |
FindNavigation(MemberInfo)
Gets a navigation property on the given entity type. Returns null
if no navigation property is found.
public virtual Microsoft.EntityFrameworkCore.Metadata.INavigation? FindNavigation (System.Reflection.MemberInfo memberInfo);
abstract member FindNavigation : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.INavigation
override this.FindNavigation : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.INavigation
Public Overridable Function FindNavigation (memberInfo As MemberInfo) As INavigation
Parameters
- memberInfo
- MemberInfo
The navigation property on the entity class.
Returns
The navigation property, or null
if none is found.
Applies to
FindNavigation(String)
Gets a navigation property on the given entity type. Returns null
if no navigation property is found.
public virtual Microsoft.EntityFrameworkCore.Metadata.INavigation? FindNavigation (string name);
abstract member FindNavigation : string -> Microsoft.EntityFrameworkCore.Metadata.INavigation
override this.FindNavigation : string -> Microsoft.EntityFrameworkCore.Metadata.INavigation
Public Overridable Function FindNavigation (name As String) As INavigation
Parameters
- name
- String
The name of the navigation property on the entity class.
Returns
The navigation property, or null
if none is found.
Applies to
Entity Framework