EntityProjectionExpression.BindNavigation(INavigation) Method

Definition

Binds a navigation with this entity projection to get entity shaper for the target entity type of the navigation which was previously added using AddNavigationBinding(INavigation, EntityShaperExpression) method.

public virtual Microsoft.EntityFrameworkCore.Query.EntityShaperExpression BindNavigation (Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);
public virtual Microsoft.EntityFrameworkCore.Query.EntityShaperExpression? BindNavigation (Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);
abstract member BindNavigation : Microsoft.EntityFrameworkCore.Metadata.INavigation -> Microsoft.EntityFrameworkCore.Query.EntityShaperExpression
override this.BindNavigation : Microsoft.EntityFrameworkCore.Metadata.INavigation -> Microsoft.EntityFrameworkCore.Query.EntityShaperExpression
Public Overridable Function BindNavigation (navigation As INavigation) As EntityShaperExpression

Parameters

navigation
INavigation

A navigation to bind.

Returns

An entity shaper expression for the target entity type of the navigation.

Applies to