Click or drag to resize

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: 9.1.0.0 (9.1.0.20241025)
Syntax
public DbTransaction ConnectAdapter(
	DbDataAdapter adapter,
	DbConnection databaseConnection,
	bool useTransaction
)

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: DbTransaction
The transaction assigned to the adapter commands
See Also