SelectExpression.AddCollectionProjection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddCollectionProjection(ShapedQueryExpression, INavigation, Type) | |
AddCollectionProjection(ShapedQueryExpression, INavigationBase, Type) |
Adds a collection to the projection of the SelectExpression. |
AddCollectionProjection(ShapedQueryExpression, INavigation, Type)
- Source:
- SelectExpression.cs
- Source:
- SelectExpression.cs
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
Parameters
- shapedQueryExpression
- ShapedQueryExpression
- navigation
- INavigation
- elementType
- Type
Returns
Applies to
AddCollectionProjection(ShapedQueryExpression, INavigationBase, Type)
- Source:
- SelectExpression.cs
Adds a collection to the projection of the 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
Parameters
- shapedQueryExpression
- ShapedQueryExpression
A shaped query expression for the subquery producing collection result.
- navigation
- INavigationBase
A navigation associated with this collection, if any.
- elementType
- Type
The type of the element in the collection.
Returns
A CollectionShaperExpression which represents shaping of this collection.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework