Entity framework code first – how to run Update-Database for production database

See Using Entity Framework (code first) migrations in production so that your application automatically updates the database when Entity Framework initializes.

Now if you’re more comfortable having manual control over the migration, you could use the -Script argument to the Update-Database command on your developer machine to generate SQL scripts which you can then run against the production database.

http://msdn.microsoft.com/en-us/data/jj591621.aspx (see Getting A SQL Script section)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)