Colton.dart
✅ Hybrid MultiTenancy with aspnet and efcore
My apologies @TeBeCo, I've been working on this problem for quite a while and may have been unintentionally vague. Let me clarify:
I have a claim that specifies a company/tenant, which works fine. My challenge lies in trying to dynamically access the DbSets based on the tenant type/DbContext. Currently, I have three DbContexts (one per tenant), and I'm aiming to minimize code duplication in my repository layer.
Ideally, I'd like to use an annotation or a namespace to get the correct DbSet. As a beginner, I'm still learning, so please let me know if any part of my explanation needs further clarification.
20 replies