Hi Ricardo,

I tried it but the same result as my reflection based approach i.e. the 
loadedState IS updated correctly to the “current state” within the 
OnPostLoad() event handler BUT still the OnFlushEntity() event still called 
on the already reset entity i.e. NH seems to think that entity is dirty :(

What's interesting is that the FlushEntityEvent event's values:

"event.Entity" as well as "event.EntityEntry.LoadedState" have identical 
values
"DirtyProperties = null"
"DirtyCheckPossible = false"

There might be some other piece that needs to be reset? Or perhaps the 
timing is wrong?

I’ve compiled a local build of NH with debug symbols to see on the inside. 
Do you have an idea where inside NH the decision is made on “entity is 
dirty/clean” ? It would help to investigate from that point.   

Regards
Sid

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to