Expression<Func<View_Product_Store_Statistics, bool>> predicate = PredicateBuilder.True<View_Product_Store_Statistics>();這一段代碼不明白什么意思,望高手指教?View_Product_Store_Statistics是一個model,Predicate只知道用到Linq的where的條件中,為什么要這么寫,這個表達式樹啥意思?為什么后面還加個PredicateBuilder.True<View_Product_Store_Statistics>();
1 回答

神不在的星期二
TA貢獻1963條經驗 獲得超6個贊
這個函數 應該就是針對 傳遞進來的參數View_Product_Store_Statistics進行一個運算后,返回一個BOOL值,我想這個你應該明白。
下面,為什么一個BOOL值要用PredicateBuilder.True來返回,就要你反編譯看下這個函數的定義了??催@個函數是怎么通過類型返回true/false的。
- 1 回答
- 0 關注
- 623 瀏覽
添加回答
舉報
0/150
提交
取消