Namespaces

Types

Type ITransaction

Namespace NHibernate

Interfaces IDisposable

Methods

Properties

Public instance methods

void Begin(IsolationLevel isolationLevel)

Begin the transaction with the specified isolation level.
Parameters
IsolationLevel isolationLevel Isolation level of the transaction

void Begin()

Begin the transaction with the default isolation level.

void Commit()

Flush the associated ISession and end the unit of work.
This method will commit the underlying transaction if and only if the transaction was initiated by this object.

void Enlist(IDbCommand command)

Enlist the IDbCommand in the current Transaction.
It is okay for this to be a no op implementation.
Parameters
IDbCommand command The IDbCommand to enlist.

void Rollback()

Force the underlying transaction to roll back.

Public properties

bool IsActive get;

Is the transaction in progress
return bool

bool WasCommitted get;

Was the transaction successfully committed?
${WriteSummary(content)}
return bool

bool WasRolledBack get;

Was the transaction rolled back or set to rollback only?
return bool