Hello!

Everybody who use long session in desktop aplications use
ISession.Lock() method. We use it to attach entity to new ISession.
Sometimes  entity reffers to other entities. So we should lock them
too.

But sometimes we have refferense to entity as a base class and do not
know what type exactly it is. In this way we very need to have
something like ISession.LockGraph(), wich would be dinamicaly parse
entity and attach every refferensed persisted entities as mach as main
entity to the same session.

By now we do not find the way to do this. Sometimes it's enought to
do
entity= newSession.Get<SuperClass>(entity.Id);
to refresh entity and all refferenced entities within new ISession.
Sometimes it is not possible.

Help us. We will appriciate any views and comments.
Thanks!

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