Click or drag to resize
AbstractDataConnectionPrepareCommand Method
Prepares the SQL command for the query.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 11.0.0
Syntax
C#
protected virtual DbCommand PrepareCommand(
	string queryText,
	QueryDataParameters queryParams,
	QueryTypeEnum queryType,
	bool allowTransaction,
	ref bool closeConnection,
	ref bool commitTransaction
)

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
allowTransaction
Type: SystemBoolean
Allow transaction for the command
closeConnection
Type: SystemBoolean
Close connection
commitTransaction
Type: SystemBoolean
Commit transaction

Return Value

Type: DbCommand
See Also