Does anyone see what I am doing wrong?
ProjectActivityTasks
has the UnitOfMeasureId
and the ProjectActivityTaskTypeId
. With the wa
You can (and should) repeat the Include(x => x.ProjectActivityTasks)
part:
var qry = await _projectActivityRepository.GetAll()
.Include(x => x.ProjectActivityVehicles)
.ThenInclude(x => x.Vehicle)
.Include(x => x.ProjectActivityTasks)
.ThenInclude(x => x.ProjectActivityTaskType)
.Include(x => x.ProjectActivityTasks)
.ThenInclude(x => x.UnitOfMeasure)
.Where(x => x.Id == Id && x.TenantId == (int)AbpSession.TenantId)
.FirstOrDefaultAsync();