Just curious as to how Skip & Take are supposed to work. I\'m getting the results I want to see on the client side, but when I hook up the AnjLab SQL Profiler and look a
As long as you don't do it like queryable.ToList().Skip(5).Take(10)
, it won't return the whole recordset.
Take
Doing only Take(10).ToList()
, does a SELECT TOP 10 * FROM
.
Skip
Skip works a bit different because there is no 'LIMIT' function in TSQL. However it creates an SQL query that is based on the work described in this ScottGu blog post.
If you see the whole recordset returned, it probably is because you are doing a ToList()
somewhere too early.