Using LINQ Visual Basic Aggregate Functions with ASP.NET 3.5
ASP.NET 3.5 in tandem with LINQ makes writing queries for your Web site a snap — or at least pretty easy. One of the most-used queries is Aggregate, which helps you find any or all of the queried terms, and can do counting and averaging for you. The following table shows the Aggregate function, describes what it does, and gives an example for each. Note that you need to precede each example with Dim dw = [Enum].GetNames (GetType(System.DayOfWeek)).