Dynamic query with OR conditions in Entity Framework

后端 未结 3 1963
我在风中等你
我在风中等你 2020-12-15 02:37

I am creating an application that searches the database and allows the user to dynamically add any criteria (around 50 possible), much like the following SO question: Creat

3条回答
  •  难免孤独
    2020-12-15 03:16

    You're probably looking for something like Predicate Builder which allows you to control the AND's and OR's of the where statement easier.

    There's also Dynamic Linq which allows you to submit the WHERE clause like a SQL string and it will parse it into the correct predicate for a WHERE.

提交回复
热议问题