dotnet cli add-migrations update-database

add-migrations update-database how to call dotnet cli

dotnet tool install --global dotnet-ef
dotnet ef migrations add xxx
dotnet ef database update

https://stackoverflow.com/questions/41536603/visual-studio-code-entity-framework-core-add-migration-not-recognized
https://docs.microsoft.com/zh-cn/aspnet/core/data/ef-rp/intro?tabs=visual-studio-code&view=aspnetcore-3.0#the-sample-app

Guess you like

Origin www.cnblogs.com/wswind/p/11792149.html