DataAccessGetCommandWithConnection Method |
Gets a DbCommand with a new local db connection or an existing db connection from the global transaction if active
Namespace:
WorkflowGen.My.Data
Assembly:
WorkflowGen.My (in WorkflowGen.My.dll) Version: 4.7.2.0 (4.7.2.0)
Syntax public DbCommand GetCommandWithConnection(
string sqlQuery,
Hashtable parameters
)
Public Function GetCommandWithConnection (
sqlQuery As String,
parameters As Hashtable
) As DbCommand
Parameters
- sqlQuery
- Type: SystemString
A SQL query - parameters
- Type: System.CollectionsHashtable
A collection of parameters
Return Value
Type:
DbCommandA DbCommand object with a opended connection
Remarks You must call the CloseCommandConnection(DbCommand command) method before disposing the DbCommand object
See Also