Completely clear the session. Evict all loaded instances and cancel all pending saves, updates and deletions. Do not close open enumerables or instances of ScrollableResults.

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

Syntax

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

See Also