After some years of lurking around, I finally have an issue that I can't find an existing answer to:
I need to run Update-Database
against my staging system (Azure SQL) but the generated script seems to be determined for my development environment (Postgres).
Did anybody else encounter this issue, or is this just a wrong setup on my part?
For context: I used the environment-specific ConfigureService methods (like ConfigureDevelopmentServices()
) and trace their call.
I'm using the using NugetPackageManagement Console under VS2019 Mac and changed the environment for my session to staging via Env: ASPNETCORE_ENVIRONMENT = "Staging"
. The database connection is established accordingly, but the script shows me that it's generation runs in "Development".
As a quick fix, I will change my development-settings to use the staging system - but I hope that there is a better solution at hand.
Best regards Lutz