Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Code First Migrations Beta 1。
我想在包管理器控制台上实际调用“更新数据库”之前查看将运行的迁移和 SQL。
是否有命令可以在包管理器控制台上获取此信息?
查看下面的链接并搜索标题为生成 SQL 脚本的部分。
ADO.Net 团队博客
Update-Database –TargetDatabase:"database" –Script在包管理器控制台中运行命令
Update-Database –TargetDatabase:"database" –Script