问题描述
我有一个.Net移动服务.
I have a .Net mobile service.
致电:
https://xxx.azure-mobile.net/tables/items ? $ filter =(company%20eq%20%27987af3f9-8d44-4a9d-8be2-7e0567287106%27)
https://xxx.azure-mobile.net/tables/items?$filter=(company%20eq%20%27987af3f9-8d44-4a9d-8be2-7e0567287106%27)
返回:
"items"实体模型中的字段名称为"company",而数据库上的字段名称为"company_Id",都不起作用.
The field name in the "items" entity model is "company" and on the database is "company_Id", neither will work.
使用 http://ajax.aspnetcdn.com/ajax/mobileservices/MobileServices.Web-1.2.5.min.js
有什么问题吗?
推荐答案
问题是您只能过滤$ select子句中存在的字段.如所述此处没道理,但是无论如何...
Problem was that you can only filter a field that is present in the $select clause. As said hereDoesn't make sense but anyway...
这篇关于where()子句返回“在URI中指定的查询无效..."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!