问题
I'm building an ASPNET MVC3 app; I have built, on the SQLServer DB, my users, roles and user_roles tables andI would like to use them instead of the aspnet_* tables built by using aspnet_regsql.exe.
Do you know if is this possible and, if so, in which way I can authenticate my users towards my tables?
回答1:
You just need to implement your own Membership and Role providers.
see How do I create a custom membership provider for ASP.NET MVC 2?
回答2:
Yes, you will need to build a custom memberShip provider
来源:https://stackoverflow.com/questions/6626172/aspnet-mvc3-can-i-use-my-user-roles-tables-to-handle-user-authentication