首页 > 其他 > 详细

Entity Framework 命令

时间:2019-09-22 18:49:51      阅读:89      评论:0      收藏:0      [点我收藏+]

生成数据库迁移文件

dotnet ef migrations add v1

列出数据库迁移文件

dotnet ef migrations list

移除最后一个数据库迁移文件

dotnet ef migrations remove

生成数据库迁移 sql 脚本

dotnet ef migrations script [arguments] [Options]
arguments:
    <From>: The starting migration
    <To>    : The ending migration
Options:
       -o   :  The file to write the Result to

更新数据库迁移文件

dotnet ef database update

删除数据库

dotnet ef database drop

 

Entity Framework 命令

原文:https://www.cnblogs.com/leehomlee/p/11568380.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!