コード例 #1
0
 public async Task <ICollection <Company> > GetAllNewCompany(int pageNumber, int pageSize) => await _context
 .Companies
 .Where(CompanyQuery.GetAllNewCompany())
 .Skip((pageNumber - 1) * pageSize)
 .Take(pageSize)
 .AsNoTracking()
 .ToListAsync();
コード例 #2
0
 public async Task <int> CountNew() =>
 await _context.Companies.Where(CompanyQuery.GetAllNewCompany()).CountAsync();