DbContext.Set<t>(grunts) ♪ Attach(entity)</t>
-
The question is: Will the Attach method update my essence? In other words, would the list be updated in the table after the attach and the context changes continued?
-
When you're calling DbSet.Atach, you're telling EF that "that's what's already in the OBD system, you don't have to put it in the base." If we call SaveChanges then nothing happens, the essence will not be changed (in the Unchanged status). That's right in the jump.
https://msdn.microsoft.com/en-us/library/system.data.entity.dbset.attach(v=vs.113).aspx