odata - How to answer OData sample questions
问题描述
The below question is based in OData. The service root - https:IIODataDemo:80801MyService.svc
Customerlnvoices and Customers are two entity sets based on the CustomerInvoice and Customer entity types.
It is a big help if anyone can provide answers to the questions below.
Retrieve Customer No and Billing Address of the Customer Invoice where InvoiceId is 15104.
Retrieve all the Customer Invoices ordered by Invoiceld (Ascending) and CustomerNo(Descending).
- Retrieve all Customers placed between 50th and 1ooth positions when ordered by Customer No in ascending order.
Thanks in advance.
解决方案
- serviceroot/CustomerInvoice('15104')?$select=CustomerNo,BillingAddress
- serviceroot/CustomerInvoice?$orderby=InvoiceId asc, CustomerNo desc
- serviceroot/CustomerInvoice?@skip=49&$top=50&CustomerNo asc
推荐阅读
- angular - Angular 是否使用 webpack 以及 webpack 配置文件在哪里?
- c# - 使用 Linq 将最大值连接到 int32
- gis - 如何从地理服务器中的图层获取样式
- file-upload - 如何将表单数据(即带有表单数据的文件)从 Angular 5 发送到 Web API
- c# - datagridview 的滚动条被 backgroundWorker 变黑
- python - 在 python 3.7 中添加音频播放
- python - 是否可以从列表中的特定元素中拆分列?
- asp.net-mvc - ViewData、ViewBag、TempData 是服务器端状态管理技术或客户端
- scala - 构建 Spark 0.5 时找不到 sbt-assembly
- sql-server - 如何在 sql-server 中生成包含一些默认字符和一些数字的增量字符串