GetHashCodehas an absolute different use . You cannot detect changes in ObjectSet, because it is the entry point to the corresponding database table (s). You can detect the changes prepared in ObjectContext, but only before the changes SaveChangesare accepted (the changes are also accepted by default ). To get changes from ObjectContext, use:
context.ObjectStateManager.GetObjectStateEntries(...)
source
share