C# Class SharpArch.RavenDb.TransactionManager

Inheritance: ITransactionManager
Mostrar archivo Open project: sharparchitecture/Sharp-Architecture

Public Methods

Method Description
BeginTransaction ( System.Data.IsolationLevel isolationLevel = IsolationLevel.ReadCommitted ) : IDisposable

Begins the transaction.

TransactionManager will single TransactionScope, subsequent call to BeginTransaction will return same scope until CommitTransaction or RollbackTransaction is called.

CommitTransaction ( ) : void

Commits the transaction, saving all changes.

RollbackTransaction ( ) : void

Rolls the transaction back, discarding any changes.

TransactionManager ( [ session ) : System

Initializes a new instance of the TransactionManager class.

Private Methods

Method Description
ClearTransaction ( ) : void
MapIsolationLevel ( System.Data.IsolationLevel isolationLevel ) : System.Transactions.System.Data.IsolationLevel

Method Details

BeginTransaction() public method

Begins the transaction.
TransactionManager will single TransactionScope, subsequent call to BeginTransaction will return same scope until CommitTransaction or RollbackTransaction is called.
public BeginTransaction ( System.Data.IsolationLevel isolationLevel = IsolationLevel.ReadCommitted ) : IDisposable
isolationLevel System.Data.IsolationLevel Transaction isolation level, see for details.
return IDisposable

CommitTransaction() public method

Commits the transaction, saving all changes.
public CommitTransaction ( ) : void
return void

RollbackTransaction() public method

Rolls the transaction back, discarding any changes.
public RollbackTransaction ( ) : void
return void

TransactionManager() public method

Initializes a new instance of the TransactionManager class.
public TransactionManager ( [ session ) : System
session [ The document session.
return System