Url Odata是否将Edm.DateTimeOffset转换为long?
可以将DateTimeOffset强制转换为long(以毫秒为单位的日期) 例: 这将返回所有出生日期在1970年1月1日之后的字段 但我明白了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
{
"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]'."
}
}