nhibernate-burrow

NHibernate + ASP.NET + Open Session in View + L2Cache

依然范特西╮ 提交于 2019-12-06 06:51:40
问题 I am using CodeProject's well known Open Session in View to handle NHibernate Sessions. Does it works well with Level 2 Cache ? Anyone has succeeded doing it? Should I use NH.Burrow instead? Any advice on l2 cache in asp.net best practices is appreciated. Edit: link to CodeProject's article: http://www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx 回答1: I use the Unit of Work pattern to handle my session. Then I create an HttpModule that implements a "Session Per Web Request"

NHibernate + ASP.NET + Open Session in View + L2Cache

杀马特。学长 韩版系。学妹 提交于 2019-12-04 12:28:30
I am using CodeProject's well known Open Session in View to handle NHibernate Sessions. Does it works well with Level 2 Cache ? Anyone has succeeded doing it? Should I use NH.Burrow instead? Any advice on l2 cache in asp.net best practices is appreciated. Edit: link to CodeProject's article: http://www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx I use the Unit of Work pattern to handle my session. Then I create an HttpModule that implements a "Session Per Web Request" lifetime that works really well. My HttpModule starts a Unit of Work on the PreExecuteRequestHandler hook,