Does anyone have any example project or tutorial for using NHiberate with Umbraco. I'm curious about best practices for creating a data layer in the code behind of a user control. Would I need to go through the steps of establishing a new ISession each time? On a normal MVC project, I would have an event fire on Application_BeginRequest that would create a new session and repository and eventually inject the repositoy in the controller. Is there a similar methodolgy for .net user controls in umbraco?
Using NHibernate with Umbraco
Does anyone have any example project or tutorial for using NHiberate with Umbraco. I'm curious about best practices for creating a data layer in the code behind of a user control. Would I need to go through the steps of establishing a new ISession each time? On a normal MVC project, I would have an event fire on Application_BeginRequest that would create a new session and repository and eventually inject the repositoy in the controller. Is there a similar methodolgy for .net user controls in umbraco?
is working on a reply...