Performs a Count operation for the specified entity type based on the provided 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 CountQuery(
	string typename,
	Query query
)
Visual Basic (Declaration)
Public Function CountQuery ( _
	typename As String, _
	query As Query _
) As Long

Parameters

typename
Type: System..::.String
The fully qualified type for which to return the Count of entity instances.
query
Type: Mindscape.LightSpeed.Querying..::.Query
The query which is used to provide criteria for the Count operation.

Return Value

The current count of this entity type as filtered by the provided query.

Implements

IDistributedUnitOfWorkContract..::.CountQuery(String, Query)

See Also