Counts the specified query.

Namespace:  Mindscape.LightSpeed.ServiceModel
Assembly:  Mindscape.LightSpeed.ServiceModel (in Mindscape.LightSpeed.ServiceModel.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
public long Count<TEntity>(
	Query query
) where TEntity : Entity
Visual Basic (Declaration)
Public Function Count(Of TEntity As Entity) ( _
	query As Query _
) As Long

Parameters

query
Type: Mindscape.LightSpeed.Querying..::.Query
The query.

Type Parameters

TEntity
The type of the entity.

Return Value

The number of entities of this type matching the query.

Implements

IUnitOfWork..::.Count<(Of <(TEntity>)>)(Query)

See Also