none
How can you be notified of EntityState changes? RRS feed

  • Question

  • I have a situation in which I need to reset a flag (which is not persisted) on entities after a successful save operation. My original thought was to hook into the ObjectStateManager.ObjectStateManagerChanged event. However, I found that this is only fired when entities are add, attached, deleted, etc. and not modified. I would like to be notified when the EntityState changes to UNCHANGED?

    Any ideas?

    THANKS!

     

    Tuesday, November 29, 2011 8:40 PM

All replies