Represents a flushing strategy.
Namespace:
NHibernateAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public Enumeration FlushMode |
C# |
---|
[SerializableAttribute] public enum FlushMode |
Visual C++ |
---|
[SerializableAttribute] public enum class FlushMode |
JavaScript |
---|
NHibernate.FlushMode = function(); NHibernate.FlushMode.createEnum('NHibernate.FlushMode', false); |
Members
Member name | Description | |
---|---|---|
Unspecified |
Special value for unspecified flush mode (like nullNothingnullptra null reference (Nothing in Visual Basic) in Java).
| |
Never |
The ISession is never flushed unless Flush() is explicitly
called by the application. This mode is very efficient for read only
transactions
| |
Commit |
The ISession is flushed when Transaction.Commit() is called
| |
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.
|
Remarks
The flush process synchronizes database state with session state by detecting state
changes and executing SQL statements