Click or drag to resize

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: 8.0.5.0 (8.0.5.20210818)
Syntax
public DbCommand GetCommandWithConnection(
	string sqlQuery,
	Hashtable parameters
)

Parameters

sqlQuery
Type: SystemString
A SQL query
parameters
Type: System.CollectionsHashtable
A collection of parameters

Return Value

Type: DbCommand
A DbCommand object with a open connection
Remarks
You must call the CloseCommandConnection(DbCommand command) method before disposing the DbCommand object
See Also