1530 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).
1 comments
timbolt8
6/6/2012 8:46:15 AM
Great article and very informative.