SelectExpression.AddCollectionProjection 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddCollectionProjection(ShapedQueryExpression, INavigation, Type) | |
AddCollectionProjection(ShapedQueryExpression, INavigationBase, Type) |
将集合添加到 的投影中 SelectExpression。 |
AddCollectionProjection(ShapedQueryExpression, INavigation, Type)
public Microsoft.EntityFrameworkCore.Query.CollectionShaperExpression AddCollectionProjection (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression shapedQueryExpression, Microsoft.EntityFrameworkCore.Metadata.INavigation navigation, Type elementType);
member this.AddCollectionProjection : Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression * Microsoft.EntityFrameworkCore.Metadata.INavigation * Type -> Microsoft.EntityFrameworkCore.Query.CollectionShaperExpression
Public Function AddCollectionProjection (shapedQueryExpression As ShapedQueryExpression, navigation As INavigation, elementType As Type) As CollectionShaperExpression
参数
- shapedQueryExpression
- ShapedQueryExpression
- navigation
- INavigation
- elementType
- Type
返回
适用于
AddCollectionProjection(ShapedQueryExpression, INavigationBase, Type)
将集合添加到 的投影中 SelectExpression。
public Microsoft.EntityFrameworkCore.Query.CollectionShaperExpression AddCollectionProjection (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression shapedQueryExpression, Microsoft.EntityFrameworkCore.Metadata.INavigationBase navigation, Type elementType);
member this.AddCollectionProjection : Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression * Microsoft.EntityFrameworkCore.Metadata.INavigationBase * Type -> Microsoft.EntityFrameworkCore.Query.CollectionShaperExpression
Public Function AddCollectionProjection (shapedQueryExpression As ShapedQueryExpression, navigation As INavigationBase, elementType As Type) As CollectionShaperExpression
参数
- shapedQueryExpression
- ShapedQueryExpression
生成收集结果的子查询的形状查询表达式。
- navigation
- INavigationBase
与此集合关联的导航(如果有)。
- elementType
- Type
集合中的元素的类型。
返回
一个 CollectionShaperExpression ,它表示此集合的整形。