Basically, it loads the object from DB and sets the new values. If this runs in a SessionScope, you have dirty tracking and can use dynamic-update.
-Markus 2009/8/6 Paul Clancy <[email protected]> > OK thanks for the info. I don't have time right now to get my head around > ARDataBinder, could you just give me a quick idea of the concepts involved? > If it sound practical I can follow it up and submit my changes back to you. > > 2009/8/6 Markus Zywitza <[email protected]> > > That is expected. The other sesson soen't have the object in its >> 1st-level-cache, so it doesn't know whether its dirty or not. >> >> A solution would be using the same approach for the session-stored object >> that ARDataBinder uses. Look into it and if it works, submit a patch ;-) >> >> -Markus >> 2009/8/6 clanger <[email protected]> >> >>> >>> How can I create an object using .Find() method, detach the object >>> using .Evict() and store it in HttpContext.Session, then sometime >>> later re-join the object to the current ISession? >>> >>> Currently, when I call .SaveAndFlush() on the object I am getting >>> updates for every field and for every item in related HasMany >>> collections. >>> >>> I'm assuming this is because the object has lost the state of the >>> previous values. Debugging revealed the previous values collection to >>> be null in the OnFlushDirty callback. >>> >> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" 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/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
