0

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 Answer 1

1

You should use Distinct().

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.