2016-08-24 11 views

답변

1
var store = new UserStore<ApplicationUser>(new ApplicationDbContext()); 
ApplicationUserManager _userManager = new ApplicationUserManager(store); 
var manger = _userManager ?? HttpContext.GetOwinContext().GetUserManager<ApplicationUserManager>(); 
var user = new ApplicationUser() { Email = aspNetUsers.Email, UserName = aspNetUsers.UserName }; 
var usmanger= manger.Create(user, aspNetUsers.PasswordHash); 
를 취할 필요도 작동하지 않습니다