I think we fixed this issue however on Version 2007.1.1210.0 which was the final ES2007 release. However, even better, our new syntax is strongly encouraged and a far superior way of writing Where clauses (it's in your build)
Code:
// Before
task.Query.Where
(
task.Query.And(task.Query.EventCode.Equal(jobTask.EventCode), task.Query.JobTypeID.Equal(jobTask.JobID)),
task.Query.And(task.Query.EventCodeOnFail.Equal(jobTask.EventCode), task.Query.JobTypeID.Equal(jobTask.JobID))
);
After
Code:
task.Query.Where
(
task.Query.EventCode == jobTask.EventCode & task.Query.JobTypeID == jobTask.JobID,
task.Query.EventCodeOnFail == jobTask.EventCode & task.Query.JobTypeID == jobTask.JobID
);
I don't know about you but I would much rather write queries like the After example, you can use (a single) & or AND and | for OR and then use the natural language syntax, ie, ==. >=, <= and so on ...
You can mix AND and OR like this:
Where( (X | Y) & (B | C) )
in your queries, using parentheses, it works great !!
EntitySpaces |
Twitter |
BLOG | Please honor our Software License