Add mode to refuse flush outside of explicit transaction
Description
Explore the possibility of a "strict" mode with regards to flushing and transaction. The idea is that when strict mode is enabled (perhaps by default), NHibernate would refuse to flush except inside an active transaction.
This would include both explicit calls to Flush() and implicit flush that may happen on querying. They should both throw an exception instead.
Explore the possibility of a "strict" mode with regards to flushing and transaction. The idea is that when strict mode is enabled (perhaps by default), NHibernate would refuse to flush except inside an active transaction.
This would include both explicit calls to Flush() and implicit flush that may happen on querying. They should both throw an exception instead.