Creating a Linq expression dynamically containing a subquery

后端 未结 2 498
一个人的身影
一个人的身影 2021-01-05 18:16

I recently stumpled upon the problem to dynamically create Linq expressions during runtime. Most examples I found deal with the rather simple task of just comparing one prop

2条回答
  •  走了就别回头了
    2021-01-05 18:56

    I recommend you look at these links:

    Joseph and Ben Albahari's PredicateBuilder

    The LINQ dynamic query library

    I haven't used either for a while, but one or the other should help.

提交回复
热议问题