【问题标题】:Odata $expand and $filter together for list of objectOdata $expand 和 $filter 一起用于对象列表
【发布时间】:2019-06-19 01:38:18
【问题描述】:

这是我从后端得到的响应(vb.net) 我已经尝试过这种方式来过滤特定值是名称和 id 但不起作用

http://localhost:26209/odata/SeasonList?$expand=season($filter=season/name eq '2017') http://localhost:26209/odata/SeasonList?$expand=season&$filter=season/name eq '2017'

【问题讨论】:

    标签: vb.net odata


    【解决方案1】:

    你可以试试这个答案link

    或者你可以试试这些examples

    http://localhost:26209/odata/SeasonList?$expand=season&$filter=season/name eq '2017 Tournaments' 
    

    【讨论】:

    • 错误发生为 URI 中指定的查询无效。属性“名称”的属性访问的父值不是单个值。属性访问只能应用于单个值
    猜你喜欢
    • 1970-01-01
    • 2017-02-27
    • 2012-02-28
    • 2015-07-29
    • 1970-01-01
    • 2019-10-08
    • 2012-04-25
    • 1970-01-01
    • 2013-11-20
    相关资源
    最近更新 更多