Nhibernate in asp,net ISession help
问题 We're using nhibernate in and asp.net MVC application. We are implementing the Session per Request pattern, via a httpModule. It looks pretty straight forward, but when we run with NHibernate Profiler, it clearly shows that the sessions are never getting closed. the pattern seems straight forward...but I don't understand why the sessions are never closing. here's the code i think is important. set up the event handler: context.EndRequest += new EventHandler(this.context_EndRequest); in the