Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Url Odata是否将Edm.DateTimeOffset转换为long?_Url_Odata_Olingo - Fatal编程技术网

Url Odata是否将Edm.DateTimeOffset转换为long?

Url Odata是否将Edm.DateTimeOffset转换为long?,url,odata,olingo,Url,Odata,Olingo,可以将DateTimeOffset强制转换为long(以毫秒为单位的日期) 例: 这将返回所有出生日期在1970年1月1日之后的字段 但我明白了 { "error":{ "code":"","message":"The query specified in the URI is not valid. The binary operator GreaterThan is not defined for the types 'System.Object' and 'System.N

可以将DateTimeOffset强制转换为long(以毫秒为单位的日期)

例:

这将返回所有出生日期在1970年1月1日之后的字段

但我明白了

   {
  "error":{
    "code":"","message":"The query specified in the URI is not valid. The binary operator GreaterThan is not defined for the types 'System.Object' and 'System.Nullable`1[System.Decimal]'."
  }
}
请检查,仅支持数值基元类型转换为其他基元类型。因此,您想要的约定不是直接支持的,但是您可以编写自定义的未绑定函数来存档它

   {
  "error":{
    "code":"","message":"The query specified in the URI is not valid. The binary operator GreaterThan is not defined for the types 'System.Object' and 'System.Nullable`1[System.Decimal]'."
  }
}