开发者

Is a good idea use Membership Provider with ASP.NET MVC

开发者 https://www.devze.com 2023-02-04 14:59 出处:网络
In ASP.NET MVC w开发者_开发问答e dont have Login controls of webform, then still make sense use Membership Provider? It is a good practice?Membership Provider is agnostic of Web Forms or any other cla

In ASP.NET MVC w开发者_开发问答e dont have Login controls of webform, then still make sense use Membership Provider? It is a good practice?


Membership Provider is agnostic of Web Forms or any other classes where it will be used, so the least I can say is its not a bad idea.


The Membership Provider is just a data store, use it as you wish. There just happen to be ASP.NET forms controls that also know how to use it.


Yes, it still makes sense. Take a look a the default project created by Visual Studio (not the empty one), to see how it can be used with ASP.NET MVC and unit tests.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号