Never Let Migration Tooling Guess the Database
One of the more dangerous database configuration errors is not a failed connection. It is a successful connection to a database nobody deliberately selected. That is why an EF Core design-time DbContext factory deserves more scrutiny than “CLI plumbing”. It decides how tooling constructs the model outside the application’s normal startup path. If it also searches broadly for connection details,…
We haven't written up this one. Dev.to has the full story — the link below goes straight to it.