LINQ Cookbook, Recipe 12: Calculate the Standard Deviation (Doug Rothaus)

Ingredients: ·         Visual Studio 2008 (Beta2 or Higher)   Categories: LINQ to Objects   Introduction: LINQ Cookbook, Recipe 11 showed how you can use LINQ queries to perform calculations on sets of data using a set of standard aggregate functions such as Average, and Sum. In this recipe, you will learn how to add an… Read more

LINQ Cookbook, Recipe 11: Desktop Search Statistics (Doug Rothaus)

Ingredients: ·        Visual Studio 2008 (Beta2 or Higher)   Categories: LINQ to DataSet   Introduction: You can use aggregate functions in LINQ queries to perform calculations on sets of data. Visual Basic includes a set of standard aggregate functions for LINQ queries: All, Any, Average, Count, LongCount, Max, Min, Sum. These functions are documented in… Read more

Visual Basic 2008 Ships!!! (Amanda Silver)

Hooray! Today we’ve finally shipped Visual Studio 2008, previously known as “Orcas”, previously known as some symbol which doesn’t have an ascii representation. We’ve come a long way, but it’s been a great ride. In his blog, Soma mentions many of the flagship features at a high-level that will undoubtedly make the every developer and… Read more

LINQ Cookbook, Recipe 10: Pre-compiling Queries for Performance (Doug Rothaus)

Ingredients: ·         Visual Studio 2008 (Beta2 or Higher)   Categories: LINQ to SQL   Introduction: As we add cookbook entries, we will include performance improvement tips where appropriate. Here’s a tip that you can use with LINQ to SQL to speed up queries that you will call numerous times: Pre-compiled queries. By pre-compiling a query,… Read more

LINQ Cookbook, Recipe 9: Dynamic Sort Order (Doug Rothaus)

Ingredients: ·         Visual Studio 2008 (Beta2 or Higher)   Categories: LINQ-To-XML   Introduction: You can use the Order By clause to easily sort the results of a LINQ query in Visual Basic. A common requirement for sorted data, however, is that the user be able to choose the fields that the results are sorted by…. Read more