【问题标题】:Odata url not returning countOdata url 不返回计数
【发布时间】:2018-11-21 22:34:59
【问题描述】:

我正在尝试使用过滤器对 odata 查询检查总记录。但它会引发错误

<m:message>Could not find a property named '$count' on type 'Edm.Boolean'.</m:message>

有什么建议吗?

https://testodataurl.com/testService.svc/Entity?$filter=(Id eq 377 and MSF eq 'Good')/$count

【问题讨论】:

    标签: count odata


    【解决方案1】:

    $count 不是查询选项。它应该出现在查询选项之前。

    所以试试

    https://testodataurl.com/testService.svc/Entity/$count/?$filter=(Id eq 377 和 MSF eq '好')

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-07-08
      • 2014-07-27
      • 1970-01-01
      • 2015-05-22
      • 2015-06-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-19
      相关资源
      最近更新 更多