.NetCore中EFCore查询参数不固定,动态创建表达式树的方法

第3方开源的有:

https://github.com/davideicardi/DynamicExpresso

https://github.com/microsoft/RulesEngine

https://github.com/zzzprojects/System.Linq.Dynamic.Core

这3个都挺好;第3个我比较喜欢。

找一些开源的第3方的组件,github上找资源是不二之选。查找资源前,先确定下搜索的关键词,并且用英文翻译出来,用英文搜索。比如,我搜索动态表达式树,英文为Dynamic expression,则github上搜索如下:

https://github.com/search?l=C%23&o=desc&q=Dynamic+expression&s=&type=Repositories

手写的方法:

https://blog.csdn.net/RedCodeRabbit/article/details/88946181

作者:沐雪
文章均系作者原创或翻译,如有错误不妥之处,欢迎各位批评指正。本文版权归作者和博客园共有,如需转载恳请注明。
如果您觉得阅读这篇博客让你有所收获,请点击右下方【推荐】
找一找教程网-随时随地学软件编程 http://www.zyiz.net/

原文地址:https://www.cnblogs.com/puzi0315/p/15110311.html