If you\'re adding \"and\" conditions to a Linq query, it\'s easy to do it like so:
var q = MyTable; if (condition1) q = q.Where(t => t.Field1 == value1)
var q = MyTable; var conditions = new List>(); if (condition1) conditions.Add(t => ...); if (condition2) conditions.Add(t => ...); q.Where(x => conditions.Any(y => y(x)));