Performs a database calculation (scalar query) using a database stored procedure.
Namespace:
Mindscape.LightSpeedAssembly: Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)
Syntax
C# |
---|
Object Calculate( ProcedureQuery query ) |
Visual Basic (Declaration) |
---|
Function Calculate ( _ query As ProcedureQuery _ ) As Object |
Parameters
- query
- Type: Mindscape.LightSpeed.Querying..::.ProcedureQuery
The database stored procedure query.
Return Value
The result of the query.Examples
CopyC#
ProcedureQuery query = new ProcedureQuery("GetSumOfPrices", new ProcedureParameter("orderId", 101)); int sum = (int)(unitOfWork.Calculate(query));