Hi guys,
Am trying to generate some sql that does the following:
Select * from Product
Where (1 = 1)
And ( dynamic clause 1)
And ( dynamic clause 2)
There maybe 0 dynamic clauses, there maybe many dynamic clauses and the ones included will be different for each query.
How can I create a PredicateExpression that will output as '1 = 1'? Or is there some over way to handle this?
Cheers,
Pete