I want to implement a custom membership provider in an asp.net MVC app. I am already using forms authentication and I have a simple database schema for membership/roles that comprises of two tables as only one user can be in one role.
Here are My table schema is in the code snippet below.
I currently check for a user's role by doing
if (User.userRole.roleName == "admin")////
But want to implement custom membership/roles so I need a code snippet that would implement the provider. T