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

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
ReleaseResource ( ) : void

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

Method Details

Begin() public méthode

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

Commit() public méthode

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

ReleaseResource() protected méthode

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

Rollback() public méthode

Rollback a transaction. This object should be in a transaction.
public Rollback ( ) : void
Résultat void

Transaction() public méthode

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.
Résultat System