![Sometimes you may want to use DB Context Factory in efcore 7 instead of just a db context, here is a vid on doing that with different connection strings and picking a Sometimes you may want to use DB Context Factory in efcore 7 instead of just a db context, here is a vid on doing that with different connection strings and picking a](https://external-preview.redd.it/sometimes-you-may-want-to-use-db-context-factory-in-efcore-v0-FlZSooxf_OnOFH-6tl0U1qJb55zsg6hBXfsdl3FFVLY.jpg?format=pjpg&auto=webp&s=1d7b4d39453f4edd4eb6b462c80cc1018d63ed4f)
Sometimes you may want to use DB Context Factory in efcore 7 instead of just a db context, here is a vid on doing that with different connection strings and picking a
![How to dynamic modify the DbContext's ConnectionString in AppService? · Issue #5052 · aspnetboilerplate/aspnetboilerplate · GitHub How to dynamic modify the DbContext's ConnectionString in AppService? · Issue #5052 · aspnetboilerplate/aspnetboilerplate · GitHub](https://user-images.githubusercontent.com/3283062/70022569-8c087700-15cf-11ea-94a4-b5256c3b73f4.png)
How to dynamic modify the DbContext's ConnectionString in AppService? · Issue #5052 · aspnetboilerplate/aspnetboilerplate · GitHub
![EF Core Migrations without Hard-coding a Connection String using IDbContextFactory - Benjamin Day Consulting, Inc. EF Core Migrations without Hard-coding a Connection String using IDbContextFactory - Benjamin Day Consulting, Inc.](https://i0.wp.com/www.benday.com/wp-content/uploads/2017/02/img_58a723a351f2f.png?resize=891%2C488&ssl=1)
EF Core Migrations without Hard-coding a Connection String using IDbContextFactory - Benjamin Day Consulting, Inc.
![Oleg Kyrylchuk ✙ 🇺🇦 on X: "In EF 5.0, a connection string can now be changed on an already initialized DbContext. I think it can be useful in horizontal scaling when there Oleg Kyrylchuk ✙ 🇺🇦 on X: "In EF 5.0, a connection string can now be changed on an already initialized DbContext. I think it can be useful in horizontal scaling when there](https://pbs.twimg.com/media/E8skX5CWUAAitAS.jpg)