IoC and fluent interfaces
You may have noticed that I like to play word games with code, so here is the Inversion of Control interface in Rhino Commons:
The main goal is to be able to say:
The Initialize() method is called at application start, and will set everything up for the rest of the application. This class is to fetch the repositories, so I can generate a complex object graph and handle some interesting scenarios from the start, using generic decorators.
In the end, I didn't go with NHibernate / Transaction integration, for the simple reason that the Repository<T> and With.Transaction{} made them unnececary.
Comments
Comment preview