Skip And Take Operators In Linq To SQL
Here we consider what is skip and take operator in LINQ.
Take operator returns a given number of rows from a datatable or List.
Skip operator skips over a specifed number of rows in a datatable or List.
Lets Consider one example here.
We can write the code for Take and Skip as follows.
First example says, take first 10 rows from datatable.
Second example says, skip first 10 rows and take remaining all rows from datatable.
Third example says, skip first 10 rows and take remaining 10 rows from datatable.
Skip and Take operator are very helpfull when we do Server Side Pagination.