How can I detect a change to an entity's EntityState?
I want to put a "Delete" button and a "Cancel" button on each row of a list of Customers. The "Cancel" button is disabled when a customer is "Unchanged". But when a customer transitions to a changed state ("Added", "Modified", "Deleted"), I want to enable the "Cancel" button so the user can reverse the changes -- whatever they are -- before saving. I can almost do this by subscribing to customer.entityAspect.propertyChanged . A property change signals a potential change in the EntityState . I can subscribe to that event and have my handler update an isChanged observable that I've added to my