问题描述
我有一个非常奇怪的odata服务问题,
I got a very strange Problem with an odata Service,
当我将以下请求发送到我的服务时,结果还可以。
When I put the following Request to my service, the result is OK
eq'0101030'& $ expand = artgruppe,artinhalt / inhaltstoff
http://localhost:53733/WcfDataService1.svc/artikel?$filter=a_nr eq '0101030' & $expand=artgruppe,artinhalt/inhaltstoff
datamodel description
datamodel description
artikel有一个artgruppe,还有几个artinhalt
artikel has one artgruppe, and several artinhalt
一个artinhalt引用一个inhaltstoff
one artinhalt references one inhaltstoff
当我以上述方式查询时,我得到了正确的结果。
when I query in the way above, I get a correct result.
当我查询
eq'0101030'& $ expand = artinhalt / inhaltstoff
http://localhost:53733/WcfDataService1.svc/artikel?$filter=a_nr eq '0101030' & $expand=artinhalt/inhaltstoff
我从Odata得到一个语法错误,这不是真正的预期结果:
I get a Syntax Error From Odata which cannot be really the expected result :
/>
推荐答案
这篇关于Odata扩展似乎有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!