示例#1
0
        public async override Task <List <ApplicationInformationHeader> > GetAll()
        {
            var results = await context.Set <ApplicationInformationHeader>().ToListAsync();

            foreach (var result in results)
            {
                result.NumberOfRequests = await context.Entry(result).Collection(b => b.FeatureRequests).Query().CountAsync();
            }
            return(results);
        }
示例#2
0
 public virtual Task <List <T> > GetAll()
 {
     return(_context.Set <T>().ToListAsync());
 }