【发布时间】:2016-04-15 11:47:24
【问题描述】:
我刚刚启动了asp.net core,现在我想在一个类中管理用户 在 mvc 5 中,就像这段代码一样简单:
var manager = new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(new ApplicationDbContext()));
var currentUser = manager.FindById(HttpContext.Current.User.Identity.GetUserId());
但我不知道如何管理 identity 3.0.0 Rc1 中的用户。 希望大家能给我推荐一个好方法
【问题讨论】:
-
你想要实现什么?
标签: asp.net .net asp.net-identity asp.net-core-mvc asp.net-identity-3