-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: ASP.NET MVC TempData and NHibernate Session
PostPosted: Mon Sep 22, 2008 12:11 pm 
Newbie

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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.