I want to have a dynamic where condition.
where
In the following example:
var opportunites = from opp in oppDC.Opportunities
Because queries are composable, you can just build the query in steps.
var query = table.Selec(row => row.Foo); if (someCondition) { query = query.Where(item => anotherCondition(item)); }