79165504

Date: 2024-11-07 08:10:52
Score: 1
Natty:
Report link

Please Ensure DbContext is registered in the Dependency Injection container inStartup.cs or Program.cs file.

If it's not registered use below code.

services.AddDbContext<YourDbContext>(options =>
    options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tharuka Deshan