views:

265

answers:

1

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

+2  A: 

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

Isaac Cambron
1.2 was a long time ago, the current docs are at: http://nhforge.org/doc/nh/en/index.html#manipulatingdata-flushing
Lachlan Roche
@Lachlan - thanks, edited.
Isaac Cambron