Data = _db.ALLOCATION_D.OrderBy(a => a.ALLO_ID)
.Skip(10)
.Take(10)
.ToList();
Let say I have 100000 rows in ALLOCATION_D
table. I want to select first 10 row. Now I want to know how the above statement executes. I don't know but I think it executes in the following way...
- first it select the 100000 rows
- then ordered by ALLO_ID
- then Skip 10
- finally select the 10 rows.
Is it right? I want to know more details.