0

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?

Mihai Limbășan
  • 64,368
  • 4
  • 48
  • 59
Webjedi
  • 4,677
  • 7
  • 42
  • 59

2 Answers2

3

Use UnitOfWorkApplication. Here's how.

Tim Scott
  • 15,106
  • 9
  • 65
  • 79
0

I think the UnitOfWork must be a service facility and not part of the Controller responsabilities.

kementeus
  • 137
  • 6