How do I undo the last Add-Migration command?

前端 未结 7 1124
醉酒成梦
醉酒成梦 2020-12-12 13:43

I have created a migration using the Add-Migration command, but I\'d like to change the name of that migration. How can I undo the migration command, so that I

7条回答
  •  醉梦人生
    2020-12-12 14:08

    If you haven't executed the migration yet with Update-Database, you can run Add-Migration again with the same name (you may need to use -Force) to re-execute the scaffolding. This is noted in the output of the Add-Migration command.

提交回复
热议问题