Fix: No service for type 'Microsoft.EntityFrameworkCore.DbContextOptions' has been registered
EF Core throws this when AddDbContext never ran, ran after Build, or your context's constructor takes the wrong DbContextOptions. Register before Build and use DbContextOptions<YourContext>.