How to make parallel async queries in EF Core 3.0 with repository pattern?
问题 I have repository like public interface IEmployeeRepository { Task<EmployeeSettings> GetEmployeeSettings(int employeeId); Task<ICollection<DepartmentWorkPosition>> GetWorkPositions(int employeeId); } Constructor of repository (DbContext injection): public EmployeeRepository(EmployeeDbContext dbContext) { _dbContext = dbContext; } And call it in EF Core 2.0 like var settingsTask = _employeeRepository .GetEmployeeSettings(employeeId.Value); var workPositionsTask = _employeeRepository