You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry if this is a dumb question, but I'm very new to Finbuckle, and still trying to get my head around it.
I want to use a single-database approach, and following the Identity sample derived my DbContext from MultiTenantIdentityDbContext (see here for the sample code). To get me going, I hard-coded the tenants in appSettings.json like in that sample, but am now looking at picking them up from the database.
According to the stores doc page, if I want to use the EFCore Store, my DbContext needs to inherit from EFCoreStoreDbContext.
I can't inherit from both, as C# doesn't allow multiple inheritance, so how do I get around this?
Thanks for any help you can give.
The text was updated successfully, but these errors were encountered:
Hi, not a dumb question. The "single database approach" term refers to tenant app data not usually the tenant store itself. It is possible to use the same database for the tenant store but under a different db context class.
I'll also add that you can make your own version of the EFCoreStore that doesn't have the requirement that EFCoreStoreDbContext is inherited--it's just an example feel free to customize for your needs.
@AndrewTriesToCode Thanks for the comments. Up until I started looking at Finbuckle, I'd never really thought about splitting by dbcontext, I'd always just used one for everything. Still not sure it's such a compelling idea, but I can see where you're coming from.
Sorry if this is a dumb question, but I'm very new to Finbuckle, and still trying to get my head around it.
I want to use a single-database approach, and following the Identity sample derived my DbContext from
MultiTenantIdentityDbContext
(see here for the sample code). To get me going, I hard-coded the tenants inappSettings.json
like in that sample, but am now looking at picking them up from the database.According to the stores doc page, if I want to use the
EFCore Store
, my DbContext needs to inherit fromEFCoreStoreDbContext
.I can't inherit from both, as C# doesn't allow multiple inheritance, so how do I get around this?
Thanks for any help you can give.
The text was updated successfully, but these errors were encountered: