How to Ignore Entity Changes
-
By default, each session tracks the changes made in all the entities it has ever stored, loaded, or queried for.
All changes are then persisted whenSaveChanges
is called. -
To ignore entity changes when calling
SaveChanges
, disable entity tracking by any of the following: