asp.net mvc and custom membership and role providers

两盒软妹~` 提交于 2019-12-10 12:57:27

问题


My question, is it possible to build customer membership and role providers (overriding the asp.net providers) when using asp.net mvc?

I am guessing it is possible but have not seen any information about it.

Would it be done the same way as in asp.net? Just changing the web.config to point to a new provider and then providing the override methods?

I have found many articles discussing changing the data source of the membership and role providers but I don't like the tables that asp.net uses so I usually use my own table structure.

If you have any articles or links that talk about this that would be great.


回答1:


Yep, the providers are exactly the same and work just like they do in "regular" asp.net.



来源:https://stackoverflow.com/questions/735571/asp-net-mvc-and-custom-membership-and-role-providers

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