Rositsa Ruseva

Rositsa Ruseva

  • 1.4k
  • 209
  • 28.4k

Problem with updating the database

Jun 29 2022 6:15 PM

I am taking a course with Blazor and we are creating at the moment a server.
I have an issue with the EF migrations. I have created a migration using the package manager console and after that, the command that I use is "update-database". However, after the "Build succeeded" is displayed and a few libraries are loaded the following is displayed: "Keyword not supported: 'trusted_connection:true;multipleactiveresultsets'. And I have nothing in the database. 

I think that maybe there is something wrong with my connection string: "DefaultConnection": "Server=.;Database=HiddenVilla;Trusted_Connection:True;MultipleActiveResultSets=true"

 

Any idea how I can fix this?


Answers (3)