Determines at which points Hibernate automatically flushes the session.

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

Syntax

C#
FlushMode FlushMode { get; set; }
Visual Basic
Property FlushMode As FlushMode
	Get
	Set
Visual C++
property FlushMode FlushMode {
	FlushMode get ();
	void set (FlushMode value);
}

Remarks

For a readonly session, it is reasonable to set the flush mode to FlushMode.Never at the start of the session (in order to achieve some extra performance).

See Also