Commits the ITransaction by flushing the ISession and committing the IDbTransaction.

Namespace:  NHibernate.Transaction
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Sub Commit
C#
public void Commit()
Visual C++
public:
virtual void Commit() sealed
JavaScript
function commit();

Implements

ITransaction..::.Commit()()()

Exceptions

ExceptionCondition
NHibernate..::.TransactionException Thrown if there is any exception while trying to call Commit() on the underlying IDbTransaction.

See Also