Foreign key reference from master tenant DbContext to a tenant's DbContext #576
Unanswered
chihabhajji
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know this an EF related question, but its kinda related to this library,
currently i have db seperated tenants where the identity models are hosted in their databases using MultitenantIdentityDbContext and everything works well,
i was wondering though, how can migrate to host only the user in the master tenant's database and all the other entities in the tenant databases, i tried to define the dbsets manually but some of them link to the user entity with a foreign key reference but i dont know how to link it to the tenant db context, so if anyone can point me on the right track it would be much appreciated.
Thank you for the amazing library and your support!
Beta Was this translation helpful? Give feedback.
All reactions