Performs a database calculation such as COUNT, SUM or AVG.
            
    Namespace: 
   Mindscape.LightSpeed.ServiceModelAssembly: Mindscape.LightSpeed.ServiceModel (in Mindscape.LightSpeed.ServiceModel.dll)
Version: 4.0.0.0 (4.0.0.0)
Syntax
| C# | 
|---|
public override Object Calculate( string calculation, IdentifierExpression attribute, Query query )  | 
| Visual Basic (Declaration) | 
|---|
Public Overrides Function Calculate ( _ calculation As String, _ attribute As IdentifierExpression, _ query As Query _ ) As Object  | 
Parameters
- calculation
 - Type: System..::.String
A SQL fragment representing the target calculation function. E.g. "SUM". 
- attribute
 - Type: Mindscape.LightSpeed.Querying..::.IdentifierExpression
The target attribute. 
- query
 - Type: Mindscape.LightSpeed.Querying..::.Query
A Query. 
Return Value
The result of the calculation.Implements
IUnitOfWork..::.Calculate(String, IdentifierExpression, Query)IUnitOfWork..::.Calculate(String, IdentifierExpression, Query)
Remarks
This overload allows you to specify functions on the attribute over which the calculation
            is performed.  It is rarely used directly: it is normally preferable to use a LINQ query instead.