2015-02-10 60 views

回答

1

我假设你的ID属性是主键。因此,永远不会有一个数据集与两个ID匹配,但您正在使用and进行搜索。尝试将您的查询更改为:

http://mywebsite.com/testService.svc/Details?$top=10&$filter=(Status ne 'Bad' and Status ne 'poor' and (Id eq 105 or Id eq 106))