Returns a query for elements of the child collection.
Namespace:
Mindscape.LightSpeed.LinqAssembly: Mindscape.LightSpeed.Linq (in Mindscape.LightSpeed.Linq.dll)
Version: 4.0.0.0 (4.0.0.0)
Syntax
C# |
---|
public static IQueryable<TCollectionElement> Query<TEntity, TCollectionElement>( TEntity entity, Expression<Func<TEntity, EntityCollection<TCollectionElement>>> collection ) where TEntity : Entity where TCollectionElement : Entity |
Visual Basic (Declaration) |
---|
Public Shared Function Query(Of TEntity As Entity, TCollectionElement As Entity) ( _ entity As TEntity, _ collection As Expression(Of Func(Of TEntity, EntityCollection(Of TCollectionElement))) _ ) As IQueryable(Of TCollectionElement) |
Parameters
- entity
- Type: TEntity
The entity whose child collection is to be queried.
- collection
- Type: System.Linq.Expressions..::.Expression<(Of <(Func<(Of <(TEntity, EntityCollection<(Of <(TCollectionElement>)>)>)>)>)>)
An expression representing the child collection to be queried.
Type Parameters
- TEntity
- The type of the parent entity.
- TCollectionElement
- The type of entities in the child collection.