[NHibernate and ASP.NET MVC] How can I implement a robust session-per-request pattern in my project,
- by Guillaume Gervais
I'm currently building an ASP.NET MVC project, with NHibernate as its persistance layer.
For now, some functionnalities have been implemented, but only use local NHibernate sessions: each method that accessed the database (read or write) needs to instanciate its own NHibernate session, with the "using()" directive.
The problem is that I want to…