ConventionEntityTypeExtensions.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(IConventionEntityType, MemberInfo) |
Gets a navigation property on the given entity type. Returns |
FindNavigation(IConventionEntityType, String) |
Gets a navigation property on the given entity type. Returns |
FindNavigation(IConventionEntityType, MemberInfo)
Gets a navigation property on the given entity type. Returns null
if no navigation property is found.
public static Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation FindNavigation (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Reflection.MemberInfo memberInfo);
static member FindNavigation : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation
<Extension()>
Public Function FindNavigation (entityType As IConventionEntityType, memberInfo As MemberInfo) As IConventionNavigation
Parameters
- entityType
- IConventionEntityType
The entity type.
- memberInfo
- MemberInfo
The navigation property on the entity class.
Returns
The navigation property, or null
if none is found.
Applies to
FindNavigation(IConventionEntityType, String)
Gets a navigation property on the given entity type. Returns null
if no navigation property is found.
public static Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation FindNavigation (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name);
static member FindNavigation : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string -> Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation
<Extension()>
Public Function FindNavigation (entityType As IConventionEntityType, name As String) As IConventionNavigation
Parameters
- entityType
- IConventionEntityType
The entity type.
- 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