I am using Linq in C#. I have defined my own function like this
public static void AutoSuggest(TextBox t, string columnName, string tableName)
{
}
- t is the refrence of the textbox
- ColumnName is the Name of specific column
- Tablename is the name of specific table
In this user defined function, using the parameters, I want to get the specified column data from the specified table of the database.
So, how should I generate this query in Linq?