I'm trying to set up a system, so when our Staging server builds, the "Update-Database" command is automatically applied.
The migrations are uploaded via the git pushes.
I've tried to put it as a build step in our CI, executing the console command: dotnet ef update database
returning a headace since it does not seem to use the connection string form the config file and fails.
I also tried putting it as a pre-build event command line
in the csproj, resulting it it hanging untill it eats up all the ram.
Any suggestions?