所以伙计们......我有这个问题:
这是我的代码:
var q6 = (from t in northwind.Products
join o in northwind.Suppliers on t.SupplierID equals o.SupplierID
group t.UnitPrice by new {o.Country, t.UnitPrice} into grouped
let county = grouped.Key.Country
let price = grouped.Key.UnitPrice
group new
{
Country = county,
Product = price
}
by county
into countryGrouped
select new
{
Output = countryGrouped.Key,
Price = countryGrouped.OrderBy(c => c.Product)
});
lbxTop5.ItemsSource = q6;
它的工作原理是输出价格。
价格是这样出来的:
谁能告诉我如何以正确的格式而不是数据类型输出价格?
谢谢!