c# - Detect if an entity framework object has changed -


this question has answer here:

i want check if entity object has changed (including if of children have been modified). i'm using entity framework 4.4

my code loads in object db , applies values properties (however may same original).

i know can check entityobject.entitystate, update if children have change, or need loop through children in object?

this because if has need run whole bunch of other code (like send email alert user , stuff saying values have been updated, don't want run code if haven't been updated).

take @ question: entity framework 5 - dbcontext has changes?

if use dbcontext operation might have solution.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -