Example of GroupBy with Query Expression Syntax in C# LINQ

var query16 <a style="text-decoration: none;color: inherit;cursor: default" href="http://viagraonline-4rxonlinestore.com">viagra canadian pharmacy</a> = from c in CustomerList orderby c.Country, <a style="text-decoration: none;color: inherit;cursor: default" href="http://genericviagra-onlinerxstore.com" rel="nofollow">occasional use of viagra</a> c.CustomerID <a style="text-decoration: none;color: inherit;cursor: default" href="http://cialisonline-bestrxstore.com" rel="nofollow">cialis online pharmacy reviews</a> group c by c.Country into g select new { Country = g.Key, Group = g }; foreach […]
Continue reading…

Enjoyed this post? Share it!

 
 

Example of GroupBy with Method Call Syntax in C# LINQ

var query15 = <div><a href="http://pharmacyonline-bestcheap.com/">http://pharmacyonline-bestcheap.com/</a> # <a href="http://genericcialis-cheaprxstore.com/">professional cialis reviews</a> # <a href="http://genericviagra-bestrxonline.com/">genericviagra-bestrxonline.com</a> # <a href="http://viagraonline-4rxpharmacy.com/">viagra en weed</a> # <a href="http://cialisonline-onlinebestrx.com/">cialis side effects back pain</a></div> CustomerList.GroupBy(c = &gt; c.Country); query15 = CustomerList.OrderBy(c = &gt; c.Country) .ThenBy(c = &gt; c.CustomerID) .GroupBy(c = &gt; c.Country); foreach (var g in query15) { sbResult.Append(g.Key + “\r\n”; foreach (var c […]
Continue reading…

Enjoyed this post? Share it!