Archive for February, 2009
Using LINQ in C# .Net 3.5, I have often had cases where I wanted to build my predicates dynamically based on the value of different runtime conditions or by iterating through a list, etc. You can easily append where clauses to an IQueryable<T> like so: query = query.Where(u => u.Name == “Scott”);query = query.Where(u => [...]