If I have the FlushMode as Never and if I do a session.Close() will the changes be persisted to the database?
Or do we have to explicitly say session.Flush() before session.Close()?
Thanks
If I have the FlushMode as Never and if I do a session.Close() will the changes be persisted to the database?
Or do we have to explicitly say session.Flush() before session.Close()?
Thanks
Close() never flushes for you (whether you have FlushMode=Never or not), and even if it did, you shouldn't depend on that.
See: http://nhforge.org/doc/nh/en/index.html#manipulatingdata-flushing