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
Also, there is an overload of AddDbContextFactory which accepts a service provider. Using that you can get the tenant by resoving IMultiTenantContextAccessor<TTenantType> then getting the connection string from the current tenant and plugging it into you UseSqlServerLine. That might be better for your use case unless you need to spin up a dbcontext for multiple tenants at once, then the option I described in the prior response will be better.
I moved from a single databases to the per-tenant database in a Blazor Server-side app. Currently I have:
But now how am I going to change the above service registration to use the per-tenant connection string?
The text was updated successfully, but these errors were encountered: