A class representing Berkeley DB transactions

Namespace:  BerkeleyDB
Assembly:  libdb_dotnet181 (in libdb_dotnet181.dll) Version: 18.1.32.0

Syntax

C#
public class Transaction
Visual Basic (Declaration)
Public Class Transaction
Visual C++
public ref class Transaction

Remarks

Calling Abort()()(), Commit()()() or Discard()()() releases the resources held by the created object.

Transactions may only span threads if they do so serially; each transaction must be active in only a single thread of control at a time. This restriction holds for parents of nested transactions as well; no two children may be concurrently active in more than one thread of control at any one time.

Cursors may not span transactions; each cursor must be opened and closed within a single transaction.

A parent transaction may not issue any Berkeley DB operations except for BeginTransaction()()(), Abort()()()and Commit()()() while it has active child transactions (child transactions that have not yet been committed or aborted).

Inheritance Hierarchy

System..::.Object
  BerkeleyDB..::.Transaction

See Also