OData SkipToken 布尔值
使用 OData 8 (.NET 6) 和下一个 url 时,会发生意外错误:
Url:
http://localhost:5000/odata/test/$filter=TestField eq 1234 & $skiptoken=BooleanField-false,MyField-5
错误:
没有为类型定义二元运算符 GreaterThan “System.Nullable
1[System.Boolean]”和“System.Nullable
1[System.Boolean]”。
错误是由代码行引起的:
oDataQueryOptions.ApplyTo
似乎skiptoken不支持布尔值?这是 .NET 的错误吗?
While using OData 8 (.NET 6) and the next url an unexpected error occurs:
Url:
http://localhost:5000/odata/test/$filter=TestField eq 1234 &$skiptoken=BooleanField-false,MyField-5
Error:
The binary operator GreaterThan is not defined for the types
'System.Nullable1[System.Boolean]' and 'System.Nullable
1[System.Boolean]'.
Error is caused by code line:
oDataQueryOptions.ApplyTo
It seems the skiptoken does not support booleans? Is this a bug of .NET?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论