I’m working on TFS API, I don’t know that TFS API have any things like LIMIT keyword or no.I need it for paging.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is nothing equivalent to the SQL
LIMITkeyword in TFS WIQL, you will need to implement the paging yourself.One approach would be to retrieve all the results on the first access, and cache them and page them yourself.
Another approach would be to dynamically construct the WIQL query each time your user pages. For example:
SELECT [System.Id] FROM WorkItems WHERE <conditions>SELECT <fields> FROM WorkItems WHERE [System.Id] IN (10,11,12,13,14,15)Depending on what you are trying to achieve, you should also know that the TFS Work Item Tracking API implements paging/lazy loading under the covers for field values, to maximize response times. You can see how this works by attaching a network sniffer and scrolling a large Work Item query in Visual Studio.
See Paging of Field Values for more information: