Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mahizsas/5809789 to your computer and use it in GitHub Desktop.
Save mahizsas/5809789 to your computer and use it in GitHub Desktop.
var query = from order in context.Orders
group order by new { order.Customer , order.OrderDate } into ordersForCustomer
select
new
{
Key1 = ordersForCustomer.Key.Customer,
Key2=ordersForCustomer.Key.OrderDate,
Count=ordersForCustomer.Count()
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment