Dynamically Build Linq Lambda Expression

前端 未结 2 1601
暗喜
暗喜 2020-12-05 05:31

Okay, my guess is this is answered somewhere already, and I\'m just not quite familiar enough with the syntax yet to understand, so bear with me.

The users of my web

2条回答
  •  猫巷女王i
    2020-12-05 06:22

    You could certainly build the expression dynamically, but I would consider using Dynamic LINQ as an alternative first, though you may not be able to use Contains. In addition, you may want to consider using PredicateBuilder to build complex queries additively.

提交回复
热议问题