How to update database with Entity Framework and SQL Server on remote host -


i have sql server database on remote web host provider. want update database (with add-migration , update-database commands package manager) on remote host.

but host not provide remote access.

how can update database?

you can use migratedatabasetolatestversion database initializer have application update on startup.

automatically upgrading on application startup

if deploying application may want automatically upgrade database (by applying pending migrations) when application launches. can registering migratedatabasetolatestversion database initializer

entity framework code first migrations

or can use update-database generate sql script perform upgrade. see entity framework code first . have application somehow run script.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -