How would the following query look if I was using the extension method syntax?
var query = from c in checks group c by string.Format(\"{0} - {1}\", c.Custome
It would look like this:
var query = checks .GroupBy(c => string.Format("{0} - {1}", c.CustomerId, c.CustomerName)) .Select (g => new { Customer = g.Key, Payments = g });