Hi is it possible using Entity Framework and/or linq to select a certain number of rows? For example i want to select rows 0 – 500000 and assign these records to the List VariableAList object, then select rows 500001 – 1000000 and assign this to the List VariableBList object, etc. etc.
Where the Numbers object is like ID,Number,DateCreated, DateAssigned, etc.
Sounds like you’re looking for the
.Take(int)and.Skip(int)methodsYou may want to be wary of the size of these lists in memory.
Note: You also may need an
.OrderByclause prior to using.Skipor.Take–I vaguely remember running into this problem in the past.