DataAccessPrepareCommand 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: 8.3.3.0 (8.3.3.20240926)
Syntax public DbCommand PrepareCommand(
string sqlQuery,
Hashtable parameters,
CommandType commandType
)
Public Function PrepareCommand (
sqlQuery As String,
parameters As Hashtable,
commandType As CommandType
) As DbCommand
Parameters
- sqlQuery
- Type: SystemString
A SQL query - parameters
- Type: System.CollectionsHashtable
A collection of parameters - commandType
- Type: System.DataCommandType
The type of the command to execute
Return Value
Type:
DbCommandSee Also