NHibernate connection.release_mode shift from auto to after_statement for lazy-loading sessions
NHibernate delegates connection checkout and return to the underlying ADO.NET provider pool. The connection.release_mode setting determines when a checked-out connection is handed back, with options on_close, after_transaction, after_statement, and auto (default). When sessions engage in lazy loading outside an explicit transaction, the connection may be hel