entity framework - Running EF database migrations in shared hosting environment -


i have site hosted on shared hosting, , when trying run 'update-database' error:

this operation requires connection 'master' database. unable create connection 'master' database because original database connection has been opened , credentials have been removed connection string. supply unopened connection.

obviously provider won't give me access master. out of luck?

update-database indeed need access 'master' database in order add new databases. entity framework assumes database not exist default, , run create database. if host provider giving access shared instance instead of own instance on shared server, can't create new databases without help.

if use command update-database -script -sourcemigration: $initialdatabase, generate .sql script can run against database, either hosting provider or through whatever portal provide you.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -