我需要排序依據的「排序依據」
顯示數據我有URL喜歡這一點,需要證明基於datewise
我想這樣
http://localhost:33396/values.svc/Names?$format=json&$expand=Address&$select=Address/PhoneNumber,Address/Pincode&$filter=Address/any(value:value/Pincode+eq+guid%27600045%27)+and+Address/any(value:value/country+eq+guid%27India%27)%20&$orderby=Address/Date+desc
數據OData的URL轉換錯誤但我得到的錯誤是這樣
{"odata.error":{"code":"","message":{"lang":"en-US","value":"The parent value for a property access of a property 'Date' is not a single value. Property access can only be applied to a single value."}}}
我怎樣才能解決這個
如果$ orderby子句在URL中被刪除,它是否工作? –
是的,它與orderby @TanJinfu一起工作 – Sreekanth
至於你的Uri,似乎一個名字有幾個地址。你的服務應該不是?我想你實際上期望每個名字只有一個地址,對吧? –