Here\'s the table
Users
UserId UserName Password EmailAddress
and the code..
In Entity Framework Core, Attach returns the entry, so all you need is:
Attach
var user = new User { Id = userId, Password = password }; db.Users.Attach(user).Property(x => x.Password).IsModified = true; db.SaveChanges();