Connect to one (or more!) context's at runtime using a context factory instead of a regular DBContext. Learn how and what to scaffold, what needs to be overridden, and where to apply scope. Its easy, and it won't take long to learn! You can even pick your connection string at runtime too. This example is in a dotnet 7 EFCore ASP.Net Razor pages project, but it would work (and you can follow along) using any console application or other web application template as well.
15 окт 2024