Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42492

VS 2010 building a dynamic linq query

$
0
0
Hi,
I have a data table with 20+ columns and potentially 30,000+ rows, and am trying to build a search engine for it. Essentially the user will choose a column then pick a search condition (less than, greater than, equal to, etc) and value. The user will also choose if the condition will be ANDed or ORed. So for example the user may select something like this...

column1 < 2
AND
column2 = 4
OR
column3 = "name"

I would like to use a linq query on the table with the information provided by the user, but am not sure how to build a dynamic linq query or if that is the best approach.
Can someone point me in the right direction about how to achieve what I am trying to do?
thanks
kevin

Viewing all articles
Browse latest Browse all 42492

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>