You are here

Blog Archive

Grouping Data with MoreLINQ Batch Extension Method

Being able to group data into batches can be quite useful and often done for reporting purposes, but I found it handy to group a series of multiple choice questions and answers for displaying a given tester. In this case, it was for a quiz that asked the capital of a given state with four possible answers provided for each question (see Figure 2). The data was in a SQL Server database table, but it could have been retrieved via a service or a text file.