Hi all,
I'm trying to generate a query of the general form
WHERE A AND B AND (C OR D OR E)
How can I achieve this? I tried this below but it's not quite correct - it's of the form
WHERE A AND B OR C OR D OR E
var qf = new QueryFactory();
var q = qf.Job;
q = q.Where(JobFields.JobTitle.Like('%' + criteria.Title + '%')); // Condition A
q = q.Where(JobFields.JobLocation.Like('%' + criteria.Location + '%')); // Condition B
q = q.OrWhere(JobFields.LokIdSector == 13); // Condition C
q = q.OrWhere(JobFields.LokIdSector == 14); // Condition D
q = q.OrWhere(JobFields.LokIdSector == 15); // Condition E
(where criteria is an object containing strings for Title and Location).
Any help much appreciated!
Thanks,
David