Hey!
I have this LINQ-query:
bool? a, b, c;
from i in _ctx.SomeEntitySet
where
(a == null ? true : i.IsA == a) &&
(b == null ? true : i.IsB == b) &&
(c == null ? true : i.IsC == c)
select i;
I only want to take the condition IsX == x
into consideration if x != null
.
Brainfreeze, please help me out...