How to reuse where clauses in Linq To Sql queries

前端 未结 4 1351
谎友^
谎友^ 2020-12-08 22:35

I have users searching records of type Record. They type a search term in a textbox and then I search records by matching several fields with the search term.

My que

4条回答
  •  离开以前
    2020-12-08 23:08

    In addition to the Expression> issue that others have pointed out, I suggest looking into PredicateBuilder. It's very good for dynamically combining lambda expressions.

提交回复
热议问题