【问题标题】:Is there any way to revert an Ef Core - Database Migration after the database is updated by 'update-database' command [duplicate]在通过“update-database”命令更新数据库后,有什么方法可以恢复 Ef Core - Database Migration [重复]
【发布时间】:2021-10-07 14:46:28
【问题描述】:

数据库更新后是否可以回滚数据库迁移?

【问题讨论】:

    标签: .net sql-server database entity-framework entity-framework-core


    【解决方案1】:

    您可以回滚到上次迁移,

    PM> Update-Database -TargetMigration:"NameOfSecondToLastMigration"
    

    【讨论】:

    猜你喜欢
    • 2018-08-13
    • 1970-01-01
    • 2019-05-02
    • 2023-04-03
    • 2020-09-16
    • 2018-06-29
    • 2021-08-02
    • 2021-02-19
    • 1970-01-01
    相关资源
    最近更新 更多