Search code examples
asp.net-mvcunit-of-workrhino-commons

RhinoCommons UnitOfWork Question with ASP.Net MVC


I'm playing around with RhinoCommons and NHibernate and I had a question about the UnitOfWork pattern.

Sorry if this is a n00b question.

Should the UnitOfWork be started at the very highest level (ie the controller)? Or say in the service module that the controller is calling down into?


Solution

  • Use UnitOfWorkApplication. Here's how.