Click or drag to resize
DaoBaseExecuteScalarQuery Method
Executes the passed in query as a scalar query and returns the value returned from this scalar execution.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax
public virtual Object ExecuteScalarQuery(
	IRetrievalQuery queryToExecute,
	ITransaction containingTransaction
)

Parameters

queryToExecute
Type: SD.LLBLGen.Pro.ORMSupportClassesIRetrievalQuery
a scalar query, which is a SELECT query which returns a single value
containingTransaction
Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
A containing transaction if caller is added to a transaction, or null of not.

Return Value

Type: Object
the scalar value returned from the query.

Implements

IDaoExecuteScalarQuery(IRetrievalQuery, ITransaction)
See Also