This question is locked. New answers and comments are not allowed.
Hello,
I've tried running a query in the form
But the generated query was composed of inner joins on Nav1 and Nav2, and consequently returned too few results.
This worked:
(This generates "exists" clauses, no joins.)
Am I doing something incorrectly or is this a bug?
Thank you,
Matej
The Telerik version we're using is 2013.3.1211.3.
I've tried running a query in the form
stuff.Where(s => maxDate > (s.IdNav1.HasValue
? s.Nav1.Date
: (s.IdNav2.HasValue
? s.Nav2.Date
: s.Date)));
This worked:
stuff.Where(s => s.IdNav1.HasValue && s.Nav1.Date < maxDate
|| !s.IdNav1.HasValue && s.IdNav2.HasValue && s.Nav2.Date < maxDate
|| !s.IdNav1.HasValue && !s.IdNav2.HasValue && s.Date < maxDate);
Am I doing something incorrectly or is this a bug?
Thank you,
Matej
The Telerik version we're using is 2013.3.1211.3.