I need immediate help. I have to create a class in asp.net 3.5. This class will take a dataset as input and have method in it that will populate dropdown list. The dataset has 5 columns. Based on column name passed as parameter to this method, the dropdown list will be populated with data in that column. Please add linq query to this method.
Please help me with linq query code ASAP.
region Public Methods
public DataSet DDLPopulate(String columnName)
{
DataSet DSToReturn = new DataSet();
//logic to filter based on the column NAme - LINQ Query
return DSToReturn;
}