I can't understand what i can do for migration database for my production server. Local machine work properly
I have ASP.NET Core 2.0 application, and in publishing setting i have settings for migration to remote database and its worked (database created with all tables)...
What i do:
1. Remove local database
2. Add-Migration Initialize
3. Update-Database
4. Publish to web site (and database created on remote server with all i need tables)
After I open my production web site and see "There are migrations for ApplicationDbContext that have not been applied to the database" and button for "Apply Migrations", when i click i have a error: "An error occurred applying migrations, try applying them from the command line" and some options for update manualy.
My manualy command "dotnet ef database update" on production have error "No executable found matching command "dotnet-ef"
Update:
I'm:
1. reinstall .Net Core SDK
2. change reference in project (on development machine) from Microsoft.EntityFrameworkCore.Tools to Microsoft.EntityFrameworkCore.Tools.DotNet
3. publish one more time and see dotnet-ef.dll in root folder on published project
Still have issue