How to write sql query in linq
how to write this query in linq ("select * from TblReg order by id OFFSET(" + (PageNumber - 1) * PAGESIZE + ") ROWS FETCH NEXT " + PAGESIZE + " ROWS ONLY ";)
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Manas MohapatraRank #182 · 13.2K reputationPosted Nov 5, 2016, 6:40 AM EDT
select rec).Skip((PageNumber - 1) * PAGESIZE).Take(PAGESIZE).ToList();
foreach (var reg in tempList)
Console.WriteLine(reg.PropertyName);
Rajeev PunhaniRank #551 · 4.4K reputationPosted Nov 5, 2016, 7:02 AM EDT
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Nov 5, 2016, 7:12 PM EDT