ASP.NET MVC 4, Migrations - How to run 'update-database' on a production server
问题 I can use package manager to run 'update-database -verbose' locally. Probably a stupid question but I can't find it online - once my website is deployed - how can I run this manually on the server? Secondarily - what other strategies would you recommend for deploying database migrations to production - and how would they be preferable? Thanks 回答1: You have a couple of options: You could use update-database -script to generate the SQL commands to update the database on the server You could use