Table of Contents

Class NHTransactionWrapper

Namespace
Breeze.Persistence.NH
Assembly
Breeze.Persistence.NH.dll

Presents an NHibernate ITransaction as an IDbTransaction, which is what the save pipeline in PersistenceManager works with.

public class NHTransactionWrapper : IDbTransaction, IDisposable
Inheritance
NHTransactionWrapper
Implements
Inherited Members

Properties

Connection

The connection this transaction runs on.

public IDbConnection Connection { get; }

Property Value

IDbConnection

IsolationLevel

The isolation level the transaction was begun with.

public IsolationLevel IsolationLevel { get; }

Property Value

IsolationLevel

Methods

Commit()

Commit the underlying NHibernate transaction.

public void Commit()

Dispose()

Dispose the underlying NHibernate transaction. The connection is left alone - this wrapper does not own it.

public void Dispose()

Rollback()

Roll back the underlying NHibernate transaction.

public void Rollback()