Here\'s the table
Users
UserId UserName Password EmailAddress
and the code..
public void ChangePassword(int userId, string password) { var user = new User{ Id = userId, Password = password }; using (var db = new DbContextName()) { db.Entry(user).State = EntityState.Added; db.SaveChanges(); } }