本文介绍了有谁能够使PredicateBuilder与PreprocessQuery一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人能够使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:

如何在Lightswitch中处理此实体关系?

但是,我似乎无法使其正常工作.

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一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-26 15:28