xxxxxxxxxx
To simplify updating DbContext in Visual Studio:
1.Go to Tools > External Tools.
2.Add a new tool with:
Title: Update DbContext
Command: dotnet.exe
Arguments: ef dbcontext scaffold "your-connection-string" Microsoft.EntityFrameworkCore.SqlServer --output-dir=Models --force
Initial directory: $(ProjectDir)
3.Optionally, check "Use Output window" and click Apply, then OK.
Now, find "Update DbContext" under Tools for a quick, one-click update.