Fathy Geaiessah

Fathy Geaiessah

  • NA
  • 17
  • 11.9k

linq query

Jul 18 2013 11:39 PM

 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 ?


Answers (1)