tags:

views:

7

answers:

1

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

+1  A: 

You should use Distinct().

Like var design = firoozehDataContext.Designs.Distinct();

Li0liQ