dotnet / dotnet/EntityFramework.Docs

but my connection string comes from api in multi tenant app and multiple database

Open
#4,902 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Mermaid
Stars
1.7k
Forks
2k
Avg merge
7d 23h
Merged PRs (30d)
16

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.