Command line connection string for EF core database update

In EF Core 5.0, you will pass the connection string in the command line like this,

dotnet ef database update --connection "connection string"

Reference: https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-5.0/whatsnew#new-command-line-parameters-for-namespaces-and-connection-strings

Leave a Comment