1
Answer

linq query

Ask a question

 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)