Represents a flushing strategy.

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

Syntax

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

Members

Member nameValueDescription
Unspecified-1 Special value for unspecified flush mode (like nullNothingnullptra null reference (Nothing in Visual Basic) in Java).
Never0 The ISession is never flushed unless Flush() is explicitly called by the application. This mode is very efficient for read only transactions
Commit5 The ISession is flushed when Transaction.Commit() is called
Auto10 The ISession is sometimes flushed before query execution in order to ensure that queries never return stale state. This is the default flush mode.
Always20 The ISession is flushed before every query. This is almost always unnecessary and inefficient.
IsIn Apply an "in" constraint to the named property Note: throws an exception outside of a QueryOver expression
IsIn Apply an "in" constraint to the named property Note: throws an exception outside of a QueryOver expression
IsBetween Apply a "between" constraint to the named property Note: throws an exception outside of a QueryOver expression
IsProxy
As
ToTypeParameters

Remarks

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

See Also