nave

nave

  • NA
  • 9.5k
  • 0

Migration for a duplicated Project

Aug 27 2013 9:27 AM
I have a web application project with local database (code first).

I duplicated the project and wanting to use the add-migration tool in order to continue development in the duplicated app.

after creating the new migration, on 'update-database'  i'm getting this error:
"Cannot insert the value NULL into column 'ContextKey', table 'mydb.dbo.__MigrationHistory'; column does not allow nulls. INSERT fails.
The statement has been terminated."

How can i continue using migration on my duplicated app?

Thanks



Answers (1)