I'm trying to do a query to generate packing slips, and need general order info, as well as how many items the order contains.
Here's my basic query:
var orders = (from cert in _orderRepository.GetAll()
where !cert.PrintedPackSlip
orderby cert.CardNumber
//group cert by cert.CardNumber
//into certGrp
select cert);
What I need to do is group by CardNumber and do a count of how many orders have that card number.
I would ideally it to come out like a Dictionary if at all possible