Unable to generate an explicit migration in entity framework

后端 未结 28 1462
情书的邮戳
情书的邮戳 2020-12-12 23:31

I am adding a new migration but this message shows:

Unable to generate an explicit migration because the following explicit migrations are pending:

28条回答
  •  再見小時候
    2020-12-12 23:51

    I suffered exactly the same problem just after reverting from a migration to another.

    In my case I "targetedmigration" from "migration06" to "migration04".

    I needed to delete the "migration0"6 and then I was able to force creating the "migration05". This basically means that you need to just keep the next migration after the targeted one.

提交回复
热议问题