I have the following LINQ statement that does on where on the date and a LabID.
where
date
LabID
I\'m passing in a list of LABS and a date, however
What we do is something like (l.reportingPeriod == reportingPeriod || reportingPeriod == null) So you check to see if the parameter is its default meaning it hasnt been used or if there is something there check it against the database.