you'd get this also when having for example

var sess1 = sessFact.OpenSession();
var sess2 = sessFact.OpenSession();

var customer = sess1.Get<Customer>();
sess2.Save(customer);

dispose sess1 before saving in sess2.

but this is horrible practice, maybe you should see
http://nhforge.org/blogs/nhibernate/archive/2011/03/03/effective-nhibernate-session-management-for-web-apps.aspx

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to