Deal of the Day

Home » Main » Manning Forums » 2008 » ASP.NET MVC in Action

Thread: NHibernate Session-per-Request pattern

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 3 - Pages: 1 - Last Post: Apr 30, 2009 2:41 PM by: ben.scheirman Threads: [ Previous | Next ]
liammclennan


Posts: 8
From: Brisbane
Registered: 5/22/08
NHibernate Session-per-Request pattern
Posted: Apr 13, 2009 3:00 AM
  Click to reply to this thread Reply

8.2.4 Request Storage suggests looking at codecamp server for an example of the nhibernate session-per-request pattern. I was looking for a good example of session-per-request and found that in codecamp server it is buried in a tarantino base class. I'm just saying that it is not easy to find.

ben.scheirman


Posts: 54
From: Houston, TX
Registered: 2/11/08
Re: NHibernate Session-per-Request pattern
Posted: Apr 13, 2009 9:21 AM   in response to: liammclennan in response to: liammclennan
  Click to reply to this thread Reply

I agree, that example is not that easy to find. It's not really the point of the section, but I wanted to mention that Request storage is useful in some scenarios.

We'll look at this and decide whether to remove it completely or perhaps point to a different example.

liammclennan


Posts: 8
From: Brisbane
Registered: 5/22/08
Re: NHibernate Session-per-Request pattern
Posted: Apr 13, 2009 4:39 PM   in response to: ben.scheirman in response to: ben.scheirman
  Click to reply to this thread Reply

It would be great if there was a simpler example, although I suppose the link to mvc is tenuous.

ben.scheirman


Posts: 54
From: Houston, TX
Registered: 2/11/08
Re: NHibernate Session-per-Request pattern
Posted: Apr 30, 2009 2:41 PM   in response to: liammclennan in response to: liammclennan
  Click to reply to this thread Reply

I decided to just link directly to the class from the tarantino project within google code. I think it's noteworthy, even if it doesn't have ties directly with MVC, it does relate to code camp server and request storage.

Thanks for the suggestion.

Legend
Gold: 300 + pts
Silver: 100 - 299 pts
Bronze: 25 - 99 pts
Manning Author
Manning Staff
Manning Developmental Editor