dsellers wrote:
Flush being called automatically is a pain in the ass. How come when we turn off auto flush it still auto flushes? That doesn't make any sense at all. surely there is a reason for it. But what is it?
Of course it doesn't make sense. How do you turn off the autoflush? Using FlushMode.Never or FlushMode.Commit should be enough. The reason for autoflushes is that NHibernate wants to give accurate results for queries by default.
jnapier wrote:
Will random flushes even occur if you set ISession.FlushMode to FlushMode.Commit?
No, they shouldn't.