Skip to content

New class to enable NH session management in Web API#12

Open
vonbv wants to merge 1 commit into
codai:masterfrom
vonbv:WebApi
Open

New class to enable NH session management in Web API#12
vonbv wants to merge 1 commit into
codai:masterfrom
vonbv:WebApi

Conversation

@vonbv

@vonbv vonbv commented Dec 9, 2012

Copy link
Copy Markdown

In response to issue #11. I will be writing a guide (blog) on how to use this, will be posting the link later.

@codai

codai commented Dec 12, 2012

Copy link
Copy Markdown
Collaborator

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:

In response to issue #11 #11.
I will be writing a guide (blog) on how to use this, will be posting the

link later.

You can merge this Pull Request by running:

git pull https://github.com/vonbv/Sharp-Lite WebApi

Or view, comment on, or merge it at:

#12
Commit Summary

  • New class to enable NH session management in Web API

File Changes

  • _A_SharpLiteSrc/app/SharpLite.NHibernateProvider/WebApi/SessionPerRequestModule.cs
    (101)

Patch Links

@vonbv

vonbv commented Dec 13, 2012

Copy link
Copy Markdown
Author

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

@diwa-zz

diwa-zz commented Jan 8, 2013

Copy link
Copy Markdown

It would be great to get Sharp-Lite work with both MVC and Web API in the same application

@vonbv

vonbv commented Jan 10, 2013

Copy link
Copy Markdown
Author

It is possible, have a look at
thishttp://ninjadonatello.wordpress.com/2012/12/07/using-sharp-lite-with-asp-net-web-api/
.

On Tue, Jan 8, 2013 at 8:51 PM, diwa notifications@github.com wrote:

It would be great to get Sharp-Lite work with both MVC and Web API in the
same application


Reply to this email directly or view it on GitHubhttps://github.com//pull/12#issuecomment-11995917.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants