Duplicate Role Names on Asp.Net Identity and Multi-tenancy
问题 I'm developing a Multi-tenancy web application with ASP.Net MVC and Identity 2.0. I have extended the IdentityRole like this: public class ApplicationRole : IdentityRole { public ApplicationRole() : base() { } public ApplicationRole(string name) : base(name) { } public string TenantId { get; set; } } This because each Tenant will have individual sets of roles, like "Admin", "Staff", etc. But the problem is, when I add a new Role, if the "Tenant A" has "Admin" role, when I add to "Tenant B"