File tree 1 file changed +5
-3
lines changed 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -838,9 +838,11 @@ sess.Lock(pk, LockMode.Upgrade);]]></programlisting>
838
838
It is possible to change the default behavior so that flush occurs less frequently.
839
839
The <literal >FlushMode</literal > class defines three different modes:
840
840
only flush at commit time (and only when the NHibernate <literal >ITransaction</literal >
841
- API is used, or inside a transaction scope), flush automatically using the explained
842
- routine (will only work inside an explicit NHibernate <literal >ITransaction</literal > or
843
- inside a transaction scope), or never flush unless
841
+ API is used, or inside a transaction scope with a legacy option enabled - see
842
+ <xref linkend =" transactions-scopes" />), flush automatically using the explained
843
+ routine (will only work inside an explicit NHibernate <literal >ITransaction</literal >, or
844
+ inside a transaction scope with limitations for flushes on commit - see
845
+ <xref linkend =" transactions-scopes" />), or never flush unless
844
846
<literal >Flush()</literal > is called explicitly. The last mode is useful for long
845
847
running units of work, where an ISession is kept open and disconnected for a long time
846
848
(see <xref linkend =" transactions-optimistic" />).
You can’t perform that action at this time.
0 commit comments