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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -