When using skip and take to page data, how can I get the total record count without a separate query

Posted by Keith Myers on Stack Overflow See other posts from Stack Overflow or by Keith Myers
Published on 2010-03-23T23:32:49Z Indexed on 2010/03/23 23:43 UTC
Read the original article Hit count: 294

Filed under:
|

I don't see how this is possible, but I really, really hate to run my query an extra time just to get the record count so I can build a pager. When I say a "pager" I simply mean the common gizmo with a link for each 10 records for example.

© Stack Overflow or respective owner

Related posts about linq-to-sql

Related posts about pagination