VC5中使用AspNetSqlMembershipProvide

VC5中使用AspNetSqlMembershipProvide

本文介绍了在MVC5中使用AspNetSqlMembershipProvider的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与MVC5一起使用,并尝试集成 AspNetSqlMembershipProvider ,而不是默认提供程序或简单成员资格提供程序.

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

是否可以将 AspNetSqlMembershipProvider MVC5 一起使用?所有登录和注册代码看起来都很笨拙,我无法弄清楚 UserManager 到底是什么.我在web.config级别进行了所有必要的更改,但我的用户仍未使用我们创建的SQL数据库进行验证.

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.

推荐答案

不推荐使用AspNetSqlMembershipProvider.

AspNetSqlMembershipProvider is deprecated.

ASP.NET通用提供程序是ASP.Net成员资格提供程序的更新版本.

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

是的,您可以在MVC5中使用 ASP.NET通用提供程序.如果您以前在WebForm中使用过ASP.Net Membership Provider,则它们基本相同,除了无法获取Async和Await.

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.

您不需要使用ASP.net Identity使用的UserManager.

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

这篇关于在MVC5中使用AspNetSqlMembershipProvider的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 08:02