拡張メソッド構文を使用していた場合、次のクエリはどのようになりますか?
var query = from c in checks
group c by string.Format("{0} - {1}", c.CustomerId, c.CustomerName)
into customerGroups
select new { Customer = customerGroups.Key, Payments = customerGroups }
拡張メソッド構文を使用していた場合、次のクエリはどのようになりますか?
var query = from c in checks
group c by string.Format("{0} - {1}", c.CustomerId, c.CustomerName)
into customerGroups
select new { Customer = customerGroups.Key, Payments = customerGroups }
これは古い質問だと思いますが、新しい読者のために、この gitubコードを見てください。
これは、Roslyn を使用してクエリ構文を取得し、それを拡張メソッド構文に変換します。