Here is is my "SaveITem() Code:
var d = _context.MyEntities
.SingleOrDefault(p => p.ID == myID);
d.Note = "test";
_context.MyEntities.ApplyCurrentValues(d);
_context.ObjectStateManager.ChangeObjectState(d, EntityState.Modified);
_context.AcceptAllChanges();
_context.SaveChanges();
In DEBUG: before calling
_context.SaveChanges();
I have my entity in the context, it's Notes value is "test",
EntityState is Modified, but...
after SaveChanges() is called it doesn't update anything on the DB. No exceptions...
Obviously, I am missing something, but I am not sure what and where...