Keswiik
Enabling debug/trace logging only for certain parts of code as needed?
https://learn.microsoft.com/en-us/dotnet/core/extensions/logging?tabs=command-line#configure-logging
8 replies
Cant debug or see tests when using vscode in wsl with docker and xunit
https://github.com/microsoft/vscode-dotnettools/issues/307 might give this a read, looks like there are a few suggestions to try
15 replies
Entity Framework Tracking not making changes to db
my guess is
business layer -> repo with tracking, maybe dbcontext isn't disposed of so it doesn't get GC'd
business layer does shit with models
business layer -> repo to save, attempt to track them with a new dbcontext
blow up because first context is still floating around and tracking them
14 replies
✅ Proper way of using EF DbContext in a BackgroundService
https://learn.microsoft.com/en-us/ef/core/dbcontext-configuration/#use-a-dbcontext-factory
any reason you can't use a dbcontextfactory?
10 replies