help! Linq query
- by menon
I am getting error msg on the word Records - Type or namespace could not be found. Please help debugging it, what is missing?
if (ProjDDL1.SelectedItem.Value != "--") results = CustomSearch<Records>(results, s => s.Business == ProjDDL1.SelectedItem.Value);
Method CustomSearch:
private DataTable CustomSearch<TKEY>(DataTable dt, Func<Records, bool> selector)
{
DataTable results = (dt.AsEnumerable().Where(selector).CopyToDataTable());
return results;
}