Sometime it is really convenient to let users to construct search query by themselves. So it is very import to have the function to build dynamic query. LINQ team provided the LINQ Dynamic Query Library. Scott Gu has an introduction blog about this library. And the authors of C# 3.0 in a nutshell also has a post about how to build dynamic LINQ.