How i can return non-duplication of records in result with linq?
var design = firoozehDataContext.Designs;
comboBoxCode.DataSource = design.ToList();
above code return all records, but i want to do that i said on above.
thanks
How i can return non-duplication of records in result with linq?
var design = firoozehDataContext.Designs;
comboBoxCode.DataSource = design.ToList();
above code return all records, but i want to do that i said on above.
thanks
You should use Distinct().
Like var design = firoozehDataContext.Designs.Distinct();