EntityTypeExtensions.FindNavigation Method

Definition

Overloads

FindNavigation(IEntityType, MemberInfo)

Gets a navigation property on the given entity type. Returns null if no navigation property is found.

FindNavigation(IEntityType, PropertyInfo)

Gets a navigation property on the given entity type. Returns null if no navigation property is found.

FindNavigation(IEntityType, String)

Gets a navigation property on the given entity type. Returns null if no navigation property is found.

FindNavigation(IEntityType, MemberInfo)

Gets a navigation property on the given entity type. Returns null if no navigation property is found.

public static Microsoft.EntityFrameworkCore.Metadata.INavigation FindNavigation (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Reflection.MemberInfo memberInfo);
static member FindNavigation : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.INavigation
<Extension()>
Public Function FindNavigation (entityType As IEntityType, memberInfo As MemberInfo) As INavigation

Parameters

entityType
IEntityType

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(IEntityType, PropertyInfo)

Gets a navigation property on the given entity type. Returns null if no navigation property is found.

public static Microsoft.EntityFrameworkCore.Metadata.INavigation FindNavigation (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Reflection.PropertyInfo propertyInfo);
static member FindNavigation : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.INavigation
<Extension()>
Public Function FindNavigation (entityType As IEntityType, propertyInfo As PropertyInfo) As INavigation

Parameters

entityType
IEntityType

The entity type to find the navigation property on.

propertyInfo
PropertyInfo

The navigation property on the entity class.

Returns

The navigation property, or null if none is found.

Applies to

FindNavigation(IEntityType, String)

Gets a navigation property on the given entity type. Returns null if no navigation property is found.

public static Microsoft.EntityFrameworkCore.Metadata.INavigation FindNavigation (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, string name);
static member FindNavigation : Microsoft.EntityFrameworkCore.Metadata.IEntityType * string -> Microsoft.EntityFrameworkCore.Metadata.INavigation
<Extension()>
Public Function FindNavigation (entityType As IEntityType, name As String) As INavigation

Parameters

entityType
IEntityType

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