Мы разработали, как связать данные с помощью синтаксиса "sql like":
var countryQuery = from c in ShopEntities.ShippingCountries
orderby c.Order
select new { c.ShippingCountryId, c.Name};
Country.DataValueField = "ShippingCountryId"; //country is a DropDownList
Country.DataTextField = "Name";
Country.DataSource = countryQuery;
DataBind();
Но как вы делаете это с синтаксисом "точка"
var countryQuery = ShopEntities.ShippingCountries.OrderBy(s => s.Order).what to put here????
Country.DataValueField = "ShippingCountryId";
Country.DataTextField = "Name";
Country.DataSource = countryQuery;
DataBind();