I have a very large list and I want to extract in parts of 50 items for which I will implement the following:
try
{
using (var context = new ccoFinalEntities())
{
return context.sales
.Where(p => true == p.status && myID == p.id)
.Take(50)
.ToList();
}
}
catch
{
return null;
}
I assume this will return me the first 50 items, my question is:
How can I get the next 50 and so on until extract the list completely?
Any comments or suggestions are welcome