Click or drag to resize

DataAccess.PrepareCommand Method (String, Hashtable, CommandType)

Builds an 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)
Syntax
public DbCommand PrepareCommand(
	string sqlQuery,
	Hashtable parameters,
	CommandType commandType
)

Parameters

sqlQuery
Type: System.String
A SQL query
parameters
Type: System.Collections.Hashtable
A collection of parameters
commandType
Type: System.Data.CommandType
The type of the command to execute

Return Value

Type: DbCommand
See Also