Click or drag to resize
DataAccess.PrepareCommand 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: 2.4.0.0 (2.4.0.0)
Syntax
public DbCommand PrepareCommand(
	DbConnection dbConnection,
	string sqlQuery,
	Hashtable parameters,
	CommandType commandType
)

Parameters

dbConnection
Type: System.Data.Common.DbConnection
Connection to the database
sqlQuery
Type: System.String
SQL query
parameters
Type: System.Collections.Hashtable
Collection of parameters
commandType
Type: System.Data.CommandType
The type of the command to execute

Return Value

Type: DbCommand
See Also