I need to set some conditions in OR into an Aurelius Query.
The conditions are decided by the interface and can vary between 0 to n
I find the way to use the OR into one line of code like follow:
oCriteria.Where(((Linq['NameCombo'] = ss) OR (Linq['Description'] = ss)));
I'm don't understand how to split in more than one row of code (I need to insert the lines in a loop).
Something like the following code (It works in AND)
oCriteria.add(Linq['NameCombo'] = ss);
oCriteria.add(Linq['Description'] = ss);
I tried the following one but it does not work
oCriteria.add(Linq['NameCombo'] = ss);
oCriteria.Add(Linq.Sql(' OR '));
oCriteria.add(Linq['Description'] = ss);