Avoid Proliferating DbContext or IQueryable in .NET Apps
Most .NET apps use EF Core and a DbContext for data access, but maintainability can suffer when the use of a DbContext or an IQueryable derived from it is allowed to spread throughout an application.