我刚刚启动了 asp.net core,现在我想在 mvc 5 的一个类中管理用户,就像下面的代码一样简单:
var manager = new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(new ApplicationDbContext()));
var currentUser = manager.FindById(HttpContext.Current.User.Identity.GetUserId());
但我不知道如何管理身份 3.0.0 Rc1中的用户。我希望你能给我一个好的方法