我試圖使用十進制數據類型來創建一個Predicate
,但我得到了以下錯誤:微風:使用謂詞用十進制數據類型
Error retrieving data.A binary operator with incompatible types was detected.
Found operand types 'Edm.Decimal' and 'Edm.Double' for operator kind 'Equal'.
Error: A binary operator with incompatible types was detected. Found operand types
'Edm.Decimal' and 'Edm.Double' for operator kind 'Equal'.
下面是代碼,我有嘗試它
// engineSize equals 1.4 in this case.
predicate.create('engineLitreCapacity', '==', engineSize);
對於同樣的問題,在這裏有很好的答案[在此鏈接] [1]。由於 [1]:http://stackoverflow.com/questions/27609998/breeze-predicate-for-decimal-type/27611461#27611461 – sergio