Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>For the most light weight NHibernate session management I would follow Ayende's excellent posts on the matter.</p> <p>These posts will guide you through the process of creating just two classes to handle the NHibernate Session Management and Configuration.</p> <p>In the end you end up with a simple ActionFilterAttribute which handle the session, configuration and transaction management and a base controller class where you can get hold of the current session.</p> <ol> <li><a href="http://ayende.com/blog/4803/refactoring-toward-frictionless-odorless-code-the-baseline" rel="nofollow">Refactoring toward frictionless &amp; odorless code: The baseline</a></li> <li><a href="http://ayende.com/blog/4804/refactoring-toward-frictionless-odorless-code-hiding-global-state" rel="nofollow">Refactoring toward frictionless &amp; odorless code: Hiding global state</a></li> <li><a href="http://ayende.com/blog/4805/refactoring-toward-frictionless-odorless-code-limiting-session-scope" rel="nofollow">Refactoring toward frictionless &amp; odorless code: Limiting session scope</a></li> <li><a href="http://ayende.com/blog/4806/refactoring-toward-frictionless-odorless-code-a-broken-home-controller" rel="nofollow">Refactoring toward frictionless &amp; odorless code: A broken home (controller)</a></li> <li><a href="http://ayende.com/blog/4807/refactoring-toward-frictionless-odorless-code-the-case-for-the-view-model" rel="nofollow">Refactoring toward frictionless &amp; odorless code: The case for the view model</a></li> <li><a href="http://ayende.com/blog/4808/refactoring-toward-frictionless-odorless-code-getting-rid-of-globals" rel="nofollow">Refactoring toward frictionless &amp; odorless code: Getting rid of globals</a></li> <li><a href="http://ayende.com/blog/4809/refactoring-toward-frictionless-odorless-code-what-about-transactions" rel="nofollow">Refactoring toward frictionless &amp; odorless code: What about transactions?</a></li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload