string colName="Ditrict"; var districtlist = db.table1.Select(colName).Distinct().ToList();
var districtlist = db.table1.Select(d=>new {Ditrict=d.Ditrict}).Distinct().ToList();
string colName="Ditrict"; var districtlist = db.table1.Select(d=>new {d.colName}).Distinct().ToList();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)