3
Answers

Entity Framework Migrations

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)