dotnet ef 迁移时添加环境变量
Nuget包管理器控制台:
Add-Migration init -Args '--environment Development'
Update-Database -Args '--environment Development'
命令提示符:
dotnet ef migrations add init -- --environment Development
dotnet ef database update -- --environment Development