草庐IT

Fortuneteller

全部标签

c# - 使用 OData Web Api 对数据传输对象进行嵌套筛选

我有一个wepapi项目使用odata使用数据,但我在使用odatawepapi时遇到了一些问题。当我执行那个查询时/api/values?$top=50&$filter=Comments/Fortuneteller/FullNameeq'somestring'它给了我以下错误"Message":"ThequeryspecifiedintheURIisnotvalid.","ExceptionMessage":"Theparentvalueforapropertyaccessofaproperty'Fortuneteller'isnotasinglevalue.Propertyacce