Joined: Mon Sep 22, 2008 10:33 am Posts: 1
|
I am creating an NHibernate session per request in ASP.NET MVC. If I populate an object from the database using NHibernate and then pass it to the next action using ASP.NET MVC's TempData construct, and then try to use that object I get "owning session was closed" errors. I am assuming because I have some lazy loading turned on.
Is there a way to re-associate that object with the session for this request? Or should I turn off lazy loading? Or is there another suggested solution?
|
|