Hey
I'm trying to combine Mvc2 with Ninject and NHibernate, and found a guide here: http://damianm.com/tech/nhibernate-mvc-and-ninject/
The problem is that he use Ninject 1. So i have to convert it, and I'm almost succesfull, but i still got one problem:
Im not sure how to convert the "context.Kernel.Get" here:
protected override ISession CreateInstance(IContext context)
{
var sessionFactory = context.Kernel.Get<ISessionFactory>();
return sessionFactory.OpenSession();
}
If you have betters ways to integrate these three libarys, please tell me.
Maola