DataAccessConnectAdapter Method (DbDataAdapter, DbConnection, Boolean) | 
 
            Connect an adapter to a given database connection and return a new transaction handler if requested
            
 
    Namespace: 
   WorkflowGen.My.Data
    Assembly:
   WorkflowGen.My (in WorkflowGen.My.dll) Version: 4.7.2.0 (4.7.2.0)
Syntaxpublic DbTransaction ConnectAdapter(
	DbDataAdapter adapter,
	DbConnection databaseConnection,
	bool useTransaction
)
Public Function ConnectAdapter ( 
	adapter As DbDataAdapter,
	databaseConnection As DbConnection,
	useTransaction As Boolean
) As DbTransaction
Parameters
- adapter
 - Type: System.Data.CommonDbDataAdapter
A data adapter - databaseConnection
 - Type: System.Data.CommonDbConnection
A database connection to be used by the adapter - useTransaction
 - Type: SystemBoolean
Determines whether or not to begin a transaction 
Return Value
Type: 
DbTransactionThe transaction assigned to the adapter commands
See Also