Force the ISession to flush.

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

Syntax

C#
void Flush()
Visual Basic
Sub Flush
Visual C++
void Flush()

Remarks

Must be called at the end of a unit of work, before commiting the transaction and closing the session (Transaction.Commit() calls this method). Flushing if the process of synchronising the underlying persistent store with persistable state held in memory.

See Also