I don't know what you're trying to accomplish but... 

Each isession is an identity map. If you read an entity in another session, you 
will have two different instances.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Fred F.
Sent: den 27 maj 2009 11:56
To: nhusers
Subject: [nhusers] Load a second instance of an object


Hi!

I've read something about identity map in nhibernate and I've learned,
that nhibernate always gives you the same instance of an business
object when load it from the database.

But for some comparisons I need the original object as it is currently
existing in the database while I have already a modified object in
front of me. So I need a second instance of the object - just for
reading. It must not have any impact on the modified object instance.

Is there any possibility to reach that?

Thanks in advance.
Fred F.



--~--~---------~--~----~------------~-------~--~----~
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