共用方式為


SelectExpression.AddCollectionProjection 方法

定義

多載

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 表示這個集合的成形。

適用於