How can I update an entity without having to make a call to select it. If I supply the key for the entity, should it not know to update after SaveChanges() is called on the
Maybe following code work fine.
var user = new User(); user.Id = 2; context.Users.Attach(user); user.Username = "user.name"; user.Name = "ABC 123"; context.SaveChanges();