Skip to content

Configuration for EFCore DbContext #662

Discussion options

You must be logged in to vote

Hi, I'm sorry the link is broken. Here's a link to the last version that had it.

It's ASP.NET Core 3.0 but most of it is still applicable.

I'm struggle to figure out how to implement the tenant store using an EFCore Db which implements IdentityUser.

Are you sure you want to do this? The multitenant store itself is not multitenant. It's the store of tenant data. I usually use a separate multitenant dbcontext for Identity so that I can have different sets of users/roles/etc for each tenant.

If you do want to use the same dbcontext make sure you have a way to initialize the dbcontext without an active tenant (because the store will be used before at tenant is known... to determine the tena…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@NickBuckland
Comment options

Answer selected by NickBuckland
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants