DataAccessPrepareCommand Method (DbConnection, String, Hashtable, CommandType) | 
 
            Builds a generic DbCommand according to a SQL statement and a set of parameters
            
 
    Namespace: 
   WorkflowGen.My.Data
    Assembly:
   WorkflowGen.My (in WorkflowGen.My.dll) Version: 4.7.2.0 (4.7.2.0)
Syntaxpublic DbCommand PrepareCommand(
	DbConnection dbConnection,
	string sqlQuery,
	Hashtable parameters,
	CommandType commandType
)
Public Function PrepareCommand ( 
	dbConnection As DbConnection,
	sqlQuery As String,
	parameters As Hashtable,
	commandType As CommandType
) As DbCommand
Parameters
- dbConnection
 - Type: System.Data.CommonDbConnection
Connection to the database - sqlQuery
 - Type: SystemString
SQL query - parameters
 - Type: System.CollectionsHashtable
Collection of parameters - commandType
 - Type: System.DataCommandType
The type of the command to execute 
Return Value
Type: 
DbCommand
See Also