EasyObjects.NET Programmers Reference

TransactionManager.GetTransaction Method (Database, Boolean)

Retrieves the current transaction from thread local storage.

public IDbTransaction GetTransaction(
   Database db,
   bool createNewTransaction
);

Parameters

db
The current database from the Enterprise Library
createNewTransaction
Flag to create a new transaction if one does not already exist

Return Value

An IDbTransaction from the requested database, or null (Nothing in Visual Basic) if BeginTransaction has not been called.

Remarks

See Also

TransactionManager Class | NCI.EasyObjects Namespace | TransactionManager.GetTransaction Overload List