C# Class Microsoft.Isam.Esent.Interop.Transaction

A class that encapsulates a transaction on a JET_SESID.
Inheritance: Microsoft.Isam.Esent.Interop.EsentResource
Datei anzeigen Open project: ayende/managed-esent Class Usage Examples

Public Methods

Method Description
Begin ( ) : void

Begin a transaction. This object should not currently be in a transaction.

Commit ( CommitTransactionGrbit grbit ) : void

Commit a transaction. This object should be in a transaction.

Rollback ( ) : void

Rollback a transaction. This object should be in a transaction.

Transaction ( JET_SESID sesid ) : System

Initializes a new instance of the Transaction class. This automatically begins a transaction. The transaction will be rolled back if not explicitly committed.

Protected Methods

Method Description
ReleaseResource ( ) : void

Called when the transaction is being disposed while active. This should rollback the transaction.

Method Details

Begin() public method

Begin a transaction. This object should not currently be in a transaction.
public Begin ( ) : void
return void

Commit() public method

Commit a transaction. This object should be in a transaction.
public Commit ( CommitTransactionGrbit grbit ) : void
grbit CommitTransactionGrbit JetCommitTransaction options.
return void

ReleaseResource() protected method

Called when the transaction is being disposed while active. This should rollback the transaction.
protected ReleaseResource ( ) : void
return void

Rollback() public method

Rollback a transaction. This object should be in a transaction.
public Rollback ( ) : void
return void

Transaction() public method

Initializes a new instance of the Transaction class. This automatically begins a transaction. The transaction will be rolled back if not explicitly committed.
public Transaction ( JET_SESID sesid ) : System
sesid JET_SESID The session to start the transaction for.
return System