IdentityRole in multi-tenant application

后端 未结 1 1420
感动是毒
感动是毒 2021-01-07 09:03

I am building an ASP.NET MVC 5 multi-tenant solution and have a slight problem when it comes to roles. I have created a custom role entity as follows:

public         


        
相关标签:
1条回答
  • 2021-01-07 09:34

    OK I've solved this. The answer is to firsrtly follow all the updates I added in my original post and then the final thing to do was make my ApplicationDbContext inherit from IdentityDbContext<ApplicationUser, ApplicationRole, string, IdentityUserLogin, IdentityUserRole, IdentityUserClaim> instead of just IdentityDbContext<ApplicationUser>

    0 讨论(0)
提交回复
热议问题