I would like to add more properties to the Roles (like a long description for instance).
I would also like to be able to associate a role to given "resource" in my database (like "Writer on the Sports Section"). This is similar to what this person asked about: MVC roles with custom properties.
I could use this and map the webpages_Roles table to EF, and add more fields to it, and even relationships to other entities. This would be particularly useful in multi-tenant application that allow each tenant to define their own roles and having each role point to the resources it has access to.
I wonder if this is a supported approach to the issue or if it might break SimpleMembership (I am going to try myself, but I am more interested on knowing if this is a workable approach in the long run and if there are similar experiences out there - maybe a tutorial on extending the Roles).
Specific questions:
- Is this possible?
- do you know of a tutorial or another web reference where this is done?