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. 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?
I'm aware that I could use an IInterceptor or store a flag in my form, but that just doesn't feel right since NHibernate also supports optimistic-lock="all". Since this is the mechanism I would need, I wonder if there's a way to trigger it manually. Anybody got any experience? Thanks for your advise =) Greetings, Reflection --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
