I am using the built in identity framework for user management, and would like to add a few customizations to the AspNetUsers table. So far the solution to each problem I\'ve en
I faced the same problem. An easy way to overcome this was just to take the properties I wanted to update from the model and save them back to an object pulled from the UserManager;
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult Edit(ApplicationUser model)
{
if (ModelState.IsValid)
{
ApplicationUser u = UserManager.FindById(model.Id);
u.UserName = model.Email;
u.Email = model.Email;
u.StaffName = model.StaffName; // Extra Property
UserManager.Update(u);
return RedirectToAction("Index");
}
return View(model);
}