Consider we have a WCF Data Service as MyService.It has an entity say Employee that has 4 properties namely age, name, salary and gender.There are a total of 56 records being present in Employee entity. Our requirement is to fetch the records between 41 to 56.Also the records will be sorted by salary. Which of the below WCF Data Service Query will help to do that?

 Posted by Rajnilari2015 on 9/25/2015 | Category: WCF Interview questions | Views: 1797 | Points: 40
Select from following answers:
  1. http://<uri>/MyService.svc/Employees?$skip=40&$orderby=salary
  2. http://<uri>/MyService.svc/Employees?$fetch=40&$orderby=salary
  3. http://<uri>/MyService.svc/Employees?$between=40AND56&$orderby=salary
  4. http://<uri>/MyService.svc/Employees?$skip>40AND<=56&$orderby=salary
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response