1
我怎樣才能給出具體的名字給客戶變量的屬性,如:如何爲LINQ創建的新對象提供替代名稱?
僞代碼:
var customers = from c in Customers
where c.Orders.Count > 15
orderby c.Orders.Count ascending
select new {
c.ContactName as Name,
c.City,
c.Orders.Count as NumberOfOrders };
@CMS你認爲這是他想要的嗎? +1來回答他所問的問題。 – 2009-07-31 15:00:08