NHibernate session management in ASP.NET Web API

added by pwalat
6/4/2012 2:32:28 AM

6 Kicks, 963 Views

In this post I am going to describe a way to manage NHibernate sessions in WebAPI applications using ‘session-per-action’ pattern. This includes working NHibernate configuration that uses contextual sessions and SQL CE 4, simple model and mappings as well as some WebAPI specific bits (action filter and use of HttpConfiguration).


6/6/2012 8:46:15 AM
Great article and very informative.