David Smith

David Smith

  • NA
  • 2k
  • 0

linq2

Oct 23 2010 12:53 PM

First off where is good tutorial or book on linq, im a beginner in linq, but im coming up to speed on linq


ok:  In the list call codesThatOccur also has item call testsname, I wnat to be able group by list.codes and list.testnames

      each testNames has there own individual codes that occur.


   the linq below only shows the the code, and how many times they occur, how to format the linq to show testname, code, and then the number occurences by testnames




            var codeThatOccr = from list in codeList.codesThatOccur
                     group list by list.codes into g
                     select new { number = g.Key, Occurance = g.Count() };

Answers (2)