I have a question about linq. I use Skip and Take to create swap:
(from l in db.ProductList
select l).Skip((page - 1) * row_per_page).Take(row_per_page)
This works, and I need to get the full lines of the product list in order to calculate the maximum page. I think I should use another query to count the rows, but is there another way to do this in one query above?
source
share