How do I undo the last Add-Migration command?

前端 未结 7 1125
醉酒成梦
醉酒成梦 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:00

    To add to @Ben 's answer, when using the dotnet ef command variety this is the remove command you need:

    dotnet ef migrations remove

    Which will remove your last migration and update the model snapshot.

提交回复
热议问题