Note that there are some explanatory texts on larger screens.

plurals
  1. POIs it possible to implement server-side paging with a WCF Service, NOT a WCF Data Service
    primarykey
    data
    text
    <p>I've been experiementing with using WCF and have written a WCF Service to provide the backend for a web site. I've encountered a problem when it comes to implementing server-side paging as all the examples I've found (such as <a href="http://msdn.microsoft.com/en-us/library/ee358711.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ee358711.aspx</a>) all seem to use DataServiceQueryContinuation and WCF Data Services.</p> <p>Whilst I appreciate I could write a WCF Data Service to return the data, it seems like extra complexity having a WCF Service for things like logins and updating user information and then a separate WCF Data Service for larger queries / reporting.</p> <p>Would this be the standard practise or is there a built in mechanism for paging data via a method call from a WCF service?</p> <p><strong>EDIT</strong></p> <p>I've found a couple of possible methods of doing this, a simple method involving Linq's <code>skip</code> and <code>take</code> operators: <a href="https://stackoverflow.com/questions/741413/implementing-pager-through-wcf-service">Implementing pager through WCF service</a> and a more complicated method: <a href="https://stackoverflow.com/questions/1476337/best-practice-for-wcf-service-with-large-amounts-of-data">Best practice for WCF service with large amounts of data?</a></p> <p>I had thought that there might be a way of using WCF Service to page data like you can with a WCF Data Service: <a href="http://msdn.microsoft.com/en-us/library/ee474245.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ee474245.aspx</a></p> <p>Does anyone know if this is possible?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload