WCF Data Service : How to query ALL entities when Paging is enabled?

QueryOperationResponse.GetContinuation() is what you are looking for. Sample code for using this in a loop at msdn.microsoft.com/en-us/library/ee35871....

Up vote 4 down vote favorite 1 share g+ share fb share tw.

I have enabled paging at my service level : config. SetEntitySetPageSize("*", 25); Now, whenever I try to query all my entities at client level, I only get 25 entities. How do I get everything?

What code should I write? C# .net wcf wcf-data-services link|improve this question edited Apr 18 '11 at 3:16 asked Apr 18 '11 at 3:08Attilah2,02732278 70% accept rate.

– Attilah Apr 18 '11 at 4:01 1 If the query you issued returned no next link (that is they GetContinuation returns null) then you got all the results. That should be all you need to know on the client. Just handle all responses as if they do use paging, those which won't will never return you the continuation, so your client will work.

– Vitek Karas MSFT Apr 18 '11 at 12:22.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions