예제 #1
0
 public Task <Step> GetStepByStepIdAsync(int stepId)
 => DefaultQuery
 .SelectMany(j => j.Steps)
 .SingleOrDefaultAsync(s => s.Id == stepId);
예제 #2
0
 public Task <List <RequirementDefinition> > GetRequirementDefinitionsByIdsAsync(IList <int> requirementDefinitionIds)
 => DefaultQuery
 .SelectMany(rt => rt.RequirementDefinitions)
 .Where(rd => requirementDefinitionIds.Contains(rd.Id))
 .ToListAsync();
 public Task <List <Tag> > GetTagsByTagIdsAsync(IEnumerable <int> tagIds)
 => DefaultQuery
 .SelectMany(project => project.Tags)
 .Where(tag => tagIds.Contains(tag.Id))
 .ToListAsync();
예제 #4
0
 public Task <RequirementDefinition> GetRequirementDefinitionByIdAsync(int requirementDefinitionId)
 => DefaultQuery
 .SelectMany(rt => rt.RequirementDefinitions)
 .SingleOrDefaultAsync(rd => rd.Id == requirementDefinitionId);
 public Task <Tag> GetTagByTagIdAsync(int tagId)
 => DefaultQuery
 .SelectMany(project => project.Tags)
 .SingleOrDefaultAsync(tag => tag.Id == tagId);