OData查询是否支持类似于SQL的不区分大小写的查询?
例如在SQL中,
//valid
Select * From Product OrderBy lastupdateddate
Select * From Product OrderBy LastUpdatedDate
在OData中,
//only one of them is valid.
/products?$orderby=lastupdateddate
/products?$orderby=LastUpdatedDate
无效的端点返回错误消息:
“指定的查询 URI无效。找不到名为的属性 'lastupdateddate'。
答案 0 :(得分:0)
在WebAPI HttpConfiguration:
//add this
config.EnableCaseInsensitive(true);