Open onurkanbakirci opened 1 year ago
I'm sorry for the late reply. Do you have a sample project I can take a look at to see the issue closer? I have to admit I don't normally have a setup like this where user is not multi tenant and the others are.
One thing to try is setting TenantNotSetMode
to Overwrite
as described here. You would do that in the constructor of your context, the property should be inherited from MultiTenantIdentityDbContext<AppUser>
for you to set.
This issue has been automatically marked for closure because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I have an app which uses .net identity for membership system and Finbuckle for achieving multi-tenancy. I try to make .net identity
TUser
object as non multi-tenant and other things (TRole
,TUserClaim
etc. ) as multi-tenant. By the doc ofFinbuckle
, to achieve this purpose, i have to passTUser
class as a generic class and other things as default. So, my identity context class is as following,So, everything is good so far. After these configurations i try to seed database with following code:
But in this point,
RoleManager
class of .net identity throws an error like following,When i inspect to
RoleManager
props, i can see that the default tenant is set correctly under theContext
class at runtime, but why .net identity throws this error?