EntityProjectionExpression.AddNavigationBinding 方法

定义

当导航的目标实体类型为所有者或弱时,为此实体投影添加导航绑定。

public virtual void AddNavigationBinding (Microsoft.EntityFrameworkCore.Metadata.INavigation navigation, Microsoft.EntityFrameworkCore.Query.EntityShaperExpression entityShaper);
abstract member AddNavigationBinding : Microsoft.EntityFrameworkCore.Metadata.INavigation * Microsoft.EntityFrameworkCore.Query.EntityShaperExpression -> unit
override this.AddNavigationBinding : Microsoft.EntityFrameworkCore.Metadata.INavigation * Microsoft.EntityFrameworkCore.Query.EntityShaperExpression -> unit
Public Overridable Sub AddNavigationBinding (navigation As INavigation, entityShaper As EntityShaperExpression)

参数

navigation
INavigation

要为其添加绑定的导航。

entityShaper
EntityShaperExpression

目标类型的实体整形器表达式。

适用于