I run this command
dotnet ef dbcontext scaffold "Server=.\SQLEXPRESS;Database=DB-Name;Integrated Security=true" Microsoft.EntityFrameworkCore.SqlServer
in PowerShell in the same directory as my project. I get an error that I need the following packages:
Microsoft.EntityFrameworkCore.Design, Microsoft.EntityFrameworkCore.SqlServer
I installed them and run the same command again. Then my packages were uninstalled and I get the same error.
Can you tell me what the problem could be? I am on Windows 7 if that matters
I have installed the packages from nuget in Visual Studio. Now I tried to do that via powershell and I succeeded. I've no idea why that happened.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.