C
C#2y ago
retro2342d

❔ PM update-database not working in Package manager console.

The add-migration was successful but update-data-base says server not found I wrote the correct name on Connection string. I am connected to that specific server name on SQL
    "DefaultConnection": "Server=(localdb)\\MSSQLLocalDB;Database=Bulky;Trusted_Connection=True;"
    "DefaultConnection": "Server=(localdb)\\MSSQLLocalDB;Database=Bulky;Trusted_Connection=True;"
3 Replies
Omnissiah
Omnissiah2y ago
as usual, can you connect to the db via workbench/what have you?
Nathan
Nathan2y ago
Iirc the PM console looks at appsettings.development.json unless specified otherwise Check your connection string in appsettings.development.json.
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server