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
@NarenderDhamarlapally this is just a code sample showing one scenario; it's up to you to adjust the code to get the connection string for your tenant in whatever way is needed in your own application.
Type of issue
Typo
Description
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
var tenant = _tenantService.Tenant;
var connectionStr = _configuration.GetConnectionString(tenant);
optionsBuilder.UseSqlite(connectionStr);
}
this is microsoft documentation
but my connection string comes from api
Page URL
https://learn.microsoft.com/en-us/ef/core/miscellaneous/multitenancy
Content source URL
https://github.com/dotnet/EntityFramework.Docs/blob/main/entity-framework/core/miscellaneous/multitenancy.md
Document Version Independent Id
bb29a2b6-c401-287f-2da9-1aeb3c633b41
Article author
@JeremyLikness
The text was updated successfully, but these errors were encountered: