How to make EF database migration on the server

There is a project on with code-first database model in Entity Framework are respectively connected to migration. It was posted to the server. how to update a remote database using Update-Database? Tried to add the ConnectionString, but you want to enter ProviderName one specified in the WebConfig is not suitable ,an error provider not found.
June 10th 19 at 14:58
1 answer
June 10th 19 at 15:00
To read about the MigrateDatabaseToLatestVersion initializer, try to start with this.

If in brief:
AutomaticMigrationsEnabled = false;
Migration must be named and saved in project files that would be compiled and present in the Assembly: "Add-Migration -Name v1".
when you publish, select the checkbox "Execute code first migrations (runs on application start)" or added to the entityFramework section->contexts description need a DbContext with initializer description (Example with we need MigrateDatabaseToLatestVersion in the end of the page).

Find more questions by tags ASP.NETEntity FrameworkWindows ServerDatabasesC#