Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何用 OData 编写此 SQL?
select * from Employees where department in ('Engineering', 'Human Resources', 'Management');
我想知道是否有一些操作员/功能。像这样的东西:
/Employees?$filter=department in ('x', 'y', 'z')
注意:我试图避免在我的应用程序中支持 OR 运算符。(此外,对于大量的值是不实用的)
OData v4 没有用于检查字符串值是否属于字符串列表的特殊运算符。您唯一实际的选择是or运营商。
or