DataAccess.PrepareCommand Method (DbConnection, String, Hashtable) |
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)
Syntax public DbCommand PrepareCommand(
DbConnection dbConnection,
string sqlQuery,
Hashtable parameters
)
Public Function PrepareCommand (
dbConnection As DbConnection,
sqlQuery As String,
parameters As Hashtable
) As DbCommand
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
Return Value
Type:
DbCommandSee Also