Hi. every body, i want to write linq query that i have a combobox containing columns names and i want to use that combobox.text after the word 'where'
in place of column name in the query to enable the user to select the field to search in. I know how to do this in sql
"select * from Table1 where ( " + combobox1.text + " = "+ textbox1.text + " ) "
how can i do this using linq ?
Iftikar HussainPosted Jul 18, 2013, 11:56 PM
Please refer the below link
http://www.west-wind.com/weblog/posts/2008/Apr/14/Dynamic-Queries-and-LINQ-Expressions
Regards,
Iftikar