Hi,
I am building query from IPredicateDescription s using PredicateBuilder.And and PredicateBuilder.Or methods.
The case is like this:
I've got a pizza menu, with different pizza classes (PepperoniPizza, etc) deriving from Pizza.
Let's assume that each order has one pizza connected and that pizza is represented by order.pizza field of type Pizza in db.
I would like to construct a predicate like this:
select every order that (order.pizza istypeof (PepperoniPizza))
How can I do it, so that I would be able to combine it with other predicates?