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)
Use the following:
var q = MyTable; q = q.Where( t => (condition1 && t.Field1 == value1) || (condition2 && t.Field2 > t.Field3));