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"  //按照迁移文件导出

原文地址:https://www.cnblogs.com/wangcongxing/p/10737016.html