c# - EF Codefirst Migrations new database -
i'm confused in situation i've gotten myself into.
i've recreated database after issue. when run project, codefirst creates database ef model. site works fine.
but come add migration, says i've got explicit migrations pending on database. these pending migrations existing migrations.
it appears db has been created recent model. without model/revision data attached.
how go populating migration data ef knows db date?
i have ask, how did go resolving issue had? idea of migrations can go backwards , forwards through them, allowing revert changes.
that said, are. in instance have agree @sq33g , remove existing migrations, , fix current database. haven't provided comprehensive account of problem suggest data elsewhere imported current database if required sql queries.
Comments
Post a Comment