Hi all.
I'm setting up an application build with the following components:
Ninject 3.0
NHibernate 3.3
FluentValidation 3.3
I'm approaching to the infrastructure setup by adapting the following three items from NHibernate 3.0 Cookbook:
- Setting up session per web request
- Creating a session ASP.NET MVC action filter
- Creating a transaction ASP.NET MVC action filter
and merging some other resources about Ninject found on the web.
- Is this a valid approach?
- Can someone point me to some resources addressing this problem?
- What about NHibernate-FluentValidation integration (so to prevent saving invalid entities)?
Thanks in advance,
Marcello.