我有一个我的Odata服务连接的数据库中的int字段。林想知道是否有可能在整数字段上做一个StartsWith过滤器。Odata过滤器开始与Integer字段
例如http://services.odata.org/Northwind/Northwind.svc/Customers?$ filter = startswith(CustomerID,'1')eq true
在这个例子中,CustomerID将是一个int字段。目前即时获得一个错误400响应,即时采集是因为你不能在int字段上执行startswith。我能以某种方式在过滤器中投射字段吗?
在此先感谢
这解决了我的问题,谢谢! – 2015-05-26 09:51:51