码迷,mamicode.com
首页 > 其他好文 > 详细

Entity Framework 命令

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

标签:update   options   rom   art   rip   脚本   new   start   end   

生成数据库迁移文件

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 命令

标签:update   options   rom   art   rip   脚本   new   start   end   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!