想要更新AspNetUser表,Identity 2.0

时间:2016-01-27 07:11:19

标签: entity-framework asp.net-identity

我想通过EntityFramework更新AspNetUser的所有字段,并给出代码

 public CustomJsonResult SaveUser(UserEditFormModel userRecord)
 {
       if (!ModelState.IsValid) CustomJson(userRecord);
       var user = Mapper.Map<ApplicationUser>(userRecord);
       return CustomJson(userRecord);
 }
  

// ----错误:userRecord未与ApplecationUser一起映射

0 个答案:

没有答案