You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like the --connection option of dotnet ef database update is not supported any more in version 3.1.5.
Is there an alternative?
> dotnet ef database update --help
Usage: dotnet ef database update [arguments] [options]
Arguments:
<MIGRATION> The target migration. If '0', all migrations will be reverted. Defaults to the last migration.
Options:
-c|--context <DBCONTEXT> The DbContext to use.
-p|--project <PROJECT> The project to use.
-s|--startup-project <PROJECT> The startup project to use.
--framework <FRAMEWORK> The target framework.
--configuration <CONFIGURATION> The configuration to use.
--runtime <RUNTIME_IDENTIFIER> The runtime to use.
--msbuildprojectextensionspath <PATH> The MSBuild project extensions path. Defaults to "obj".
--no-build Don't build the project. Only use this when the build is up-to-date.
-h|--help Show help information
-v|--verbose Show verbose output.
--no-color Don't colorize output.
--prefix-output Prefix output with level.
Hi everyone, I came across this issue with 3.1.5 where i too got the --connection <CONNECTION> option of database update is not supported
If you go to the section Known issue with --connection... in this article i pulled together to explain my experience of this, you'll see how I updated my appsettings.json connection string on the fly, in the pipeline, and then running dotnet ef database update. Here's the link: entity-framework-core-migrations-in-azure-devops
It seems like the
--connection
option ofdotnet ef database update
is not supported any more in version3.1.5
.Is there an alternative?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: