2012-12-17 35 views
1

我想查詢字段(來自我的ODATA服務),誰有類型的Int64。查詢看起來像: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 

回答

相關問題