我想通过EntityFramework更新AspNetUser的所有字段,并给出代码
public CustomJsonResult SaveUser(UserEditFormModel userRecord)
{
if (!ModelState.IsValid) CustomJson(userRecord);
var user = Mapper.Map<ApplicationUser>(userRecord);
return CustomJson(userRecord);
}
// ----错误:userRecord未与ApplecationUser一起映射