Determines at which points Hibernate automatically flushes the session.

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

Syntax

Visual Basic (Declaration)
Property FlushMode As FlushMode
C#
FlushMode FlushMode { get; set; }
Visual C++
property FlushMode FlushMode {
	FlushMode get ();
	void set (FlushMode value);
}
JavaScript
function get_flushMode();
function 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