In lines...
2009/9/1 reflection <[email protected]>

>
> Hello,
>
> I try to do a dirty check for detached objects. The background is that
> I want to check if the user edited something while the object was not
> connected to a session. It is a windows forms application, so keeping
> open the connection is not an option.
>

and who said you that maintain the session open mean maintain the connection
opened ?


> I know that the ISession isn't aware of the State my Object is in,
> when I use session.Lock() (that was my first thought). But session.Lock
> () only checks the in memory object version against the version in the
> db (using versioned optimistic locking) if the DB version has changed
> meanwhile, but it does not look up the properties. No problem so far.
> But is there any way to tell nhibernate to check if my detached object
> is got dirty since detaching it from the session?
>

Yes. The more easy way is an implementation of IIterceptor.FindDirty

-- 
Fabio Maulo

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