0

I am new to ASP.NET Core and using Entity Framework 6.

I have created a Web API using MySql. On development, I have executed add migrations and update-database command.

Now, I have published the Web API and I have to deploy it on a server. The server doesn't have development environment. I want to update the production database. How can I do this?`

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Amit Verma
  • 2,450
  • 2
  • 8
  • 21

1 Answers1

0

I don't understand this : "The server doesn't have development environment."

You only have to replace Database ConnectionString of your project with ConnectionString of server, and then use update-database to update database.

Ali.Ahmadi
  • 51
  • 6