In this example, I will show you how to fill a combox in windows application using entity framework c# .net.
private void LoadCountries()
{
var countries = (from c in db.Orders
select new { c.ShipCountry }).Distinct().ToList();
cboCountry.DataSource = countries;
cboCountry.ValueMember = "shipcountry";
cboCountry.DisplayMember = "shipcountry";
}
Output: