Flush the associated ISession and end the unit of work.

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

Syntax

Visual Basic (Declaration)
Sub Commit
C#
void Commit()
Visual C++
void Commit()
JavaScript
function commit();

Remarks

This method will commit the underlying transaction if and only if the transaction was initiated by this object.

See Also