Serhat Koroglu

Serhat Koroglu

  • NA
  • 19
  • 12.7k

Entity Framework Migrations

Dec 16 2016 3:12 PM
I use code first to design my database. In my server there is a different database. So I want that when I published my new asp.net project to the server, let the database migrate to new version automatically. How can I do that? Which subject should I check?
 
OK we can do that with the remote database connection string and update-database command from console. But not so, how is it possible by inline the code?

Answers (3)