Assembly: Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)
Syntax
C# |
---|
long Count<TEntity>( Query query ) where TEntity : Entity |
Visual Basic (Declaration) |
---|
Function Count(Of TEntity As Entity) ( _ query As Query _ ) As Long |
Parameters
- query
- Type: Mindscape.LightSpeed.Querying..::.Query
The Query.
Type Parameters
- TEntity
- The entity type.
Return Value
The number of entities.
Examples

Query query = new Query(Entity.Attribute("Price") > 1000000); long expensiveProductCount = unitOfWork.Count<Product>(query);