[英]How to use UserManager<IdentityUser> with UserStore<IdentityUser>?
this is a snippet of my ASP.Net MVC Core project.这是我的 ASP.Net MVC Core 项目的一个片段。
UserStore<IdentityUser> userStore = new UserStore<IdentityUser>(_db);
UserManager<IdentityUser> userManager = new UserManager<IdentityUser>(userStore);
I am receiving the error message below from UserManager's parameter input.我从 UserManager 的参数输入中收到以下错误消息。
I've tried changing userStore's data type to IUserStore and var, but they result in the same errors.我尝试将 userStore 的数据类型更改为 IUserStore 和 var,但它们会导致相同的错误。 Please help!请帮忙!
Try:尝试:
UserManager<IdentityUser> userManager = new UserManager<IdentityUser>(userStore,null, null, null, null, null, null, null, null);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.