79251923

Date: 2024-12-04 16:12:31
Score: 3.5
Natty:
Report link

I was having the same problem and after two days trying to figure out how to solve it, Thanks to Brett JB and Martin Schneider comments I saw that when using AddDbContextFactory then you don't need to also add AddDbContext when registering the services. The factory method adds the Context to the service provider and you can inject it without problem.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): how to solve
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: UltimateVenom