【发布时间】:2017-03-03 18:41:25
【问题描述】:
今天我以以下方式使用 EF 迁移:我使用
dotnet ef migrations add MigrationName
创建一个新的迁移,然后
dotnet ef database update
将上次更新应用到数据库。
现在,如果我只想生成最后一个迁移数据库更新脚本,有没有使用 dotnet ef 的方法?
我的意思是,显然在应用之前,工具链必须生成脚本,然后提交到数据库。
有没有办法只输出脚本而不应用到数据库?
【问题讨论】:
标签: .net asp.net-core .net-core entity-framework-core entity-framework-migrations