问题描述
有人能够使PredicateBuilder与PreprocessQuery一起使用吗?
Has anyone been able to get the PredicateBuilder to work with PreprocessQuery?
此论坛帖子说PredicateBuilder应该在LS PreprocessQuery中工作:
This forum post says that the PredicateBuilder should work within a LS PreprocessQuery:
但是,我似乎无法使其正常工作.
However, I can't seem to get it to work.
谢谢!
Garth Henderson-先锋商务技术
Garth Henderson - Vanguard Business Technology
推荐答案
我对谓词构建器使用了类似的方法,该方法运行良好.只需20行代码即可.
I use a similar approach to predicate builder which is working perfectly. Under the cover it's only a matter of 20 lines of code.
此方法描述如下:
与谓词生成器有关的问题:您是否应用了扩展方法AsExpandable(),否则它将无法正常工作.
What concerns predicate builder: did you apply the extension method AsExpandable(), otherwise it won't work.
这篇关于有谁能够使PredicateBuilder与PreprocessQuery一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!