Unable to generate an explicit migration in entity framework

后端 未结 28 1519
情书的邮戳
情书的邮戳 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-13 00:05

    For me, i deleted the migration file(in your case "201203170856167_left") from Migrations folder, and then ran the below command in Package Manager console

    Add-Migration 
    Update-Database
    

提交回复
热议问题