I've posted it on the NHUSERS group but since someone had recently asked a very similar question to only get 0 responses, I'm not optimistic.
I've forcibly updated the EntityEntry's "loadedState" private field (via reflection) from within the OnPostLoad event but entities thus neutralized still get written out on the Commit(). So it seems NH has already made it's decision on clean/dirty by the time it fires the OnPostLoad event. Either that or there are a few other fields that are used to make the 'dirty/clean' decision inside NH that I need to neutralize. Anyway, if there doesn't exist a public API to do this, I might have to extend/patch it in myself, so I'm looking at the NH 3.3.3 src on GIT and am stepping through it. Does anyone have pointers towards into the piece of code (inside NH) that governs the clean/dirty decision for an entity? I'm hoping there is a public API to do this (from the NHUsers forum) but if not I'll have to tinker on the insides. If everything works out, I can make a GIT pull request off the patch. -- --- You received this message because you are subscribed to the Google Groups "nhibernate-development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
