问题
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