I'm trying to use Scaffold-DbContext but I got error:
Scaffold-DbContext 'Data Source=serverName;Initial Catalog=Test Trusted_Connection=True' Microsoft.EntityFrameworkCore.SqlServer
Connection string in another app:
"ConnectionStrings": { "AppConnection": "Server=serverName;database=Test;Trusted_Connection=True;MultipleActiveResultSets=true"
Error (scaffolding):
Login failed for user ''.
I dont have user in db and I connect by the same connectionstring to this base in another application and it works but not anymore with Scaffold-DbContext.
A connection was successfully established with the server, but then an error occurred during the login process. (Error Number: 233) https://entityframeworkcore.com/knowledge-base/49451319/dotnet-ef-scaffold-login-fails-for-user-sa-on-a-sqlserver-macos-linux