entity framework - I get this error on my production server, but the application works locally just fine -


migrations enabled context 'applicationdbcontext' database not exist or contains no mapped tables. use migrations create database , tables, example running 'update-database' command package manager console.

can explaing why?

if dev system working , prod not, can generate script bring them in sync:

update-database -script –sourcemigration $initialdatabase 

this create idempotent script test has been applied , hasn't. use sql server management studio apply script.

https://msdn.microsoft.com/en-us/data/jj591621.aspx?f=255&mspperror=-2147217396#idempotent


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -