Remark : Mssql 쿼리 top 20 개만 가져오기
1 2 3 4 5 6 |
var applicant = (from s in MyRepository.GetApplicant() orderby s.LastName select s).Take(10); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
public async Task<IActionResult> History(int? id) { if (id == null) { return NotFound(); } var Rule_History = from s in _context.Historys select s; return PartialView(await History.AsNoTracking().Where(s => s.IDX == id).Take(20).ToListAsync()); } |