Select from following answers:- http://<uri>/MyService.svc/Employees?$orderby=salary&$top=3

- http://<uri>/MyService.svc/Employees?$orderby=salary,$top=3
- http://<uri>/MyService.svc/Employees?$orderby=>salary&$top=>3
- http://<uri>/MyService.svc/Employees?$orderby=>salary,$top=>3
- All Above
$orderby defines the sort order to be use in WCf Data service.It's syntax is
Service/EntitySetName/$orderby=<Property1,Property2..PropertyN>
$top defines the number of records to be retrived from the Data Service.It's syntax is
Service/EntitySetName/$top=<No of records>
We can mix them both by using the syntax :
Service/EntitySetName/$orderby=<Property1..PropertyN>&$top=<No of records>
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator