Using AspNetSqlMembershipProvider in MVC5

送分小仙女□ 提交于 2021-02-18 18:53:53

问题


working with MVC5 and trying to integrate AspNetSqlMembershipProvider than the default provider or simple membership provider.

Is that possible to use AspNetSqlMembershipProvider with MVC5? All login and register codes looks clumsy and I am not able to figure out what exactly UserManager. I did all necessary alterations in the web.config level, still my users are not validating with the SQL Database which we have created.


回答1:


AspNetSqlMembershipProvider is deprecated.

ASP.NET Universal Providers is an updated version of ASP.Net Membership Provider.

Is that possible to use AspNetSqlMembershipProvider with MVC5?

Yes you can use ASP.NET Universal Providers in MVC5. If you have used ASP.Net Membership Provider in WebForm previously, they basically are same except you cannot get Async and Await.

All login and register codes looks clumsy and I am not able to figure out what exactly UserManager.

You do not need to use UserManager which is used by ASP.net Identity.



来源:https://stackoverflow.com/questions/24886761/using-aspnetsqlmembershipprovider-in-mvc5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!