Update Database - Connection
See original GitHub issueDescribe the bug
When using the Update Database feature, it’s not possible to specify a non-default connection
To Reproduce
Steps to reproduce the behavior:
- In Rider, select Tools : Entity Framework Core : Update Database
- Uncheck “Use default connection of startup project”
- Enter a connection string without surrounding quotes, or a connection name without surrounding quotes
- Click preview and note how the connection string is specified in the command with escaped quotes around the connection string.
dotnet ef database update --project my.csproj --startup-project my.csproj --context myContext --configuration Debug myBranch --connection \"connectionName\"
- Click OK and see error message.
Expected behavior
The connection string in the command should be included in the command with unescaped quotes, and the update should execute.
Environment (please complete the following information):
- OS: Windows 10
- .NET SDK info (installed ones and version used within Rider): 6.0
- Plugin version: 222.1.0
- Rider version: 2022.2.1
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to explicitly name the database when using Entity ...
When doing update-database you should specify the project that contains the migrations. ... It trying to get "DefaultConnection" connection string first ...
Read more >Update a database connection—ArcGIS Insights
If a workbook is open in Insights, save your work and click the Home button Home · Click the Connections tab Connections ·...
Read more >Update WordPress database connection details – Support
Update WordPress database connection details. Step 1 - Open File Manager: Step 2 - Open wp-config.php: Step 3 - Locate the login details:...
Read more >EF Core tools reference (Package Manager Console)
Update -Database The number 0 is a special case that means before the first migration and causes all migrations to be reverted. If...
Read more >WordPress: How to Update Database Connection Strings
How to Update Database Connection Strings ; Log in to your account Hosting Summary. Domains Tab ; Go to File Manager. Filemanager ;...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the report, seems like double escaping is accidentally applied somewhere in the code. For a temporary workaround, you could try to use “Additional arguments” field if it work for you.
Thank you, Vova, for your very fast responses yesterday!