New class to enable NH session management in Web API#12
Conversation
|
I'm trying to figure what exactly you added....it looks like a replica of the existing SharpLite.NHibernateProvider.Web.SessionPerRequestModule, but with a few more using statements. Am I missing something? Billy On Sun, Dec 9, 2012 at 7:48 AM, vonbv notifications@github.com wrote:
|
|
The new http module class is basically the same as with the other one. When retrieving the NH session, instead of using the dependency resolver from System.Web.Mvc, we will be using the one from System.Web.Http. GetSessionFactories method line 92 |
|
It would be great to get Sharp-Lite work with both MVC and Web API in the same application |
|
It is possible, have a look at On Tue, Jan 8, 2013 at 8:51 PM, diwa notifications@github.com wrote:
|
In response to issue #11. I will be writing a guide (blog) on how to use this, will be posting the link later.