Represents a flushing strategy.

Namespace: NHibernate
Assembly:   NHibernate (in NHibernate)
Version: 1.2.0.4000

Syntax

Visual Basic (Declaration)
<SerializableAttribute> _
Public Enumeration FlushMode
C#
[SerializableAttribute]
public enum FlushMode
Visual C++
[SerializableAttribute]
public enum class FlushMode

Members

MemberDescription
Auto
The ISession is sometimes flushed before query execution in order to ensure that queries never return stale state. This is the default flush mode.

Commit
The ISession is flushed when Transaction.Commit() is called

Never
The ISession is never flushed unless Flush() is explicitly called by the application. This mode is very efficient for read only transactions

Unspecified
Special value for unspecified flush mode (like nullNothingnullptr in Java).

Remarks

The flush process synchronizes database state with session state by detecting state changes and executing SQL statements