dotnet new console
dotnet add package Microsoft.EntityFrameworkCore.SqlServer
sqllocaldb create ef_core_logging
- Set up entities and DB context
dotnet add package Microsoft.Extensions.Logging.Console
In some other EF repos I use a different way to log, which I should show here as well.