ASP.NET MVC Search Page - Integer StartsWith On Linq + EF4

后端 未结 5 1739
谎友^
谎友^ 2021-01-03 16:58

So, in my last post I was asking how to build a dynamic search filter using LINQ and EF4 (See Here) and finally came up with the solution of building the expression as a str

5条回答
  •  青春惊慌失措
    2021-01-03 17:24

    Have you looked at the Dynamic LinQ Library: http://weblogs.asp.net/scottgu/archive/2008/01/07/dynamic-linq-part-1-using-the-linq-dynamic-query-library.aspx

    And for your question How to use "contains" or "like" in a dynamic linq query?

    Previously I have gotten the code for this lib and just taken a look inside, it is pretty easy to follow.

提交回复
热议问题