AbstractDataConnection PrepareCommand Method Kentico 8.0 API Reference
Prepares the SQL command for the query.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

queryText
Type: OnlineSystem String
Query or stored procedure to be run
queryParams
Type: CMS.DataEngine QueryDataParameters
Query parameters
queryType
Type: CMS.DataEngine QueryTypeEnum
Indicates it query is a SQL query or stored procedure
allowTransaction
Type: OnlineSystem Boolean
Allow transaction for the command
closeConnection
Type: OnlineSystem Boolean 
Close connection
commitTransaction
Type: OnlineSystem Boolean 
Commit transaction

Return Value

Type: OnlineDbCommand
See Also