As you already pointed out in your question, the Skip method is not implemented in the Windows Azure Table storage. This means that you have 2 options left:
Option 1
Download all the data from the table storage (using ToList, see abatishchev answer) and execute the Skip and Take methods in this full list. In your question you are talking about 500 entries. If the number of records is not too large, this solution should be ok for you, just make sure that all records have the same partition key.
If the data is growing, you can still use this approach, but I suggest that you evaluate the caching solution to keep all records and not load them from the table storage again and again (this will improve performance, but does not expect this to work with very large volumes data). Caching is possible on Windows Azure using:
Option 2
The CloudTableQuery class allows you to query data, but itβs more important to get a continuation token to create a paging implementation. This allows you to determine if you can request additional data; an example of a page on Scott's blog (see nemensv's comment) uses this.
For more information on continuing tokens, I suggest you take a look at Jim's blog blog: Azure @home Part 7: Asynchronous Paging . Using continuation tokens, you only load data for the current page, which means that it will also work correctly, even if you have millions of records. But you should know the disadvantages of using continuation tokens:
- This will not work with the Skip method out of the box, so this may not be the solution for you.
- There are no page numbers because you only know if there is more data (and not how much)
- Unable to read all records
source share