While the title of this article may seem misleading, you actually can achieve incredible performance gains by updating your web application to use LINQ. This article will dispell some common myths about LINQ and demonstrate how LINQ can practically increase performance. The examples in this article will be using LINQ to SQL, but the principles [...]
Read More >>
LINQ (Language INtegrated Query) is a powerful but misunderstood new language feature brought to us in the .NET framework version 3.5 (C# 3.0 and VB 9). Even though this is a new feature, it already has some huge misconceptions (such as thinking LINQ is a replacement to SQL). This article will teach you how to [...]
Read More >>
The GridView control in ASP.NET 2.0 is lacking some major (yet common) functionality – sorting. This article will show you how to create a “self-sorting” GridView using LINQ expression trees. First, it’s important to explain what I mean when I say that the GridView doesn’t have sorting capabilities. You’re probably saying to yourself – “I [...]
Read More >>
The “Distinct” function in LINQ is definitely one of the top 10 most used functions, but it’s probably one of the top 10 most incomplete as well. This article will show how to extend the IEnumerable interface to allow a very easy way to specify what property makes your list unique (or ‘distinct’). If you [...]
Read More >>