How do I undo the last Add-Migration command?

前端 未结 7 1165
醉酒成梦
醉酒成梦 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 13:54

    Just use command

    Remove-migration
    

    It will remove last added migration and update snapshot. It will not affect database so you have to rollback db in first place.

提交回复
热议问题