Web services ODATA-类型为Int64的查询字段

Web services ODATA-类型为Int64的查询字段,web-services,odata,Web Services,Odata,我试图查询字段(从我的ODATA服务),该字段的类型为Int64。查询如下所示: http://localhost/Data/MyTable?%24inlinecount=allpages&%24top=100&%24filter=BIGID+eq+666423361622 但它抛出了一个例外- "An error occurred while processing this request". 在调试模式下检查异常详细信息后,我发现了真正的异常- {System.Overf

我试图查询字段(从我的ODATA服务),该字段的类型为Int64。查询如下所示:

http://localhost/Data/MyTable?%24inlinecount=allpages&%24top=100&%24filter=BIGID+eq+666423361622
但它抛出了一个例外-

"An error occurred while processing this request".
在调试模式下检查异常详细信息后,我发现了真正的异常-

{System.OverflowException: Value was either too large or too small for an Int32...}
有没有一种方法可以使ODATA不使用对Int32的解析?可能是这样的:

filter=(Int64)BIGID+eq+666423361622 

Int64文本的格式应为[-][0-9]+L,因此在您的案例中为666423361622L(注意末尾的L字母)。这是根据