mam coś takiego:LINQ do SQL .Sum (...) bez grupy do
var itemsInCart = from o in db.OrderLineItems
where o.OrderId == currentOrder.OrderId
select new { o.OrderLineItemId, ..., ..., o.WishListItem.Price}
jest jakiś sposób, aby zrobić
itemsCart.Sum() //not sure what to pass into the function
aby uzyskać sumę o. WishListItem.Price czy muszę pobrać inny plik iQueryable < T> z bazy danych z grupą ... do?
który jest jeszcze lepszy, thanx –