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
Post a Comment