EntityProjectionExpression.BindNavigation(INavigation) 方法

定义

将导航绑定到此实体投影,以获取之前使用 AddNavigationBinding(INavigation, EntityShaperExpression) 方法添加的导航的目标实体类型的实体整形程序。

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

参数

navigation
INavigation

要绑定的导航。

返回

导航的目标实体类型的实体整形程序表达式。

适用于