dotnet生成数据库迁移

dotnet ef migrations add 201904191634 --configuration "APP DEBUG"    //生成数据库歉意

dotnet ef database update --configuration "APP DEBUG"  //更新数据库


dotnet ef migrations remove --configuration "APP DEBUG" //删除迁移文件

dotnet ef migrations script -o 20190419.sql --configuration "APP DEBUG" //到处sql文件


dotnet ef migrations script 201904181659 -o 20190419.sql --configuration "APP DEBUG"  //按照迁移文件导出

 

 

 

 

 

 

 

 

posted @ 2019-04-19 16:54  汪丛兴  阅读(639)  评论(0编辑  收藏  举报