Click or drag to resize
AbstractDataConnectionExecuteScalar Method
Returns a single value result of the query.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
public virtual Object ExecuteScalar(
	string queryText,
	QueryDataParameters queryParams,
	QueryTypeEnum queryType,
	bool requiresTransaction
)

Parameters

queryText
Type: SystemString
Query or stored procedure to be run
queryParams
Type: CMS.DataEngineQueryDataParameters
Query parameters
queryType
Type: CMS.DataEngineQueryTypeEnum
Indicates it query is a SQL query or stored procedure
requiresTransaction
Type: SystemBoolean
If true, the query should run within transaction

Return Value

Type: Object

Implements

IDataConnectionExecuteScalar(String, QueryDataParameters, QueryTypeEnum, Boolean)
See Also