Unity and NHibernate
I am looking for the best way to configure Microsoft.Practices.Unity.IUnityContainer to manage nHibernate ISessionFactory lifetime for asp.net application. I would also like unity to introduce my IDataLayer implementation which takes an instance of NHibernate.ISession by calling GetCurrentSession on the managed ISessionFactory.
Please enter the code in your answer :-)
0
a source to share
1 answer