Returns the number of entities of a specified Type.
Namespace:
Mindscape.LightSpeedAssembly: Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)
Syntax
C# |
---|
long Count<TEntity>() where TEntity : Entity |
Visual Basic (Declaration) |
---|
Function Count(Of TEntity As Entity) As Long |
Type Parameters
- TEntity
- The entity type.
Return Value
The number of entities.
Examples

long productCount = unitOfWork.Count<Product>();