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: