I know how to add OR restriction using Disjunction()
but i need add to this group of criterias, and i alwasy require at least 2 criterias. Im wondering how can I add single OR to existing criterias.
Semi code example.
model.RootCriteria.Add(restriction)
<- restriction one (e.g. name like 'name')
Next after few lines i want to add AND or OR restriction to already existing depending on variable.
if(AND)
model.(Here add AND restriction)
<- add AND to existing what is only model.RootCriteria.Add(restriction) and it works
else if(OR)
model.(Here add OR restriction)
<- add OR to existing what i dont know how to do this
output i want to receive is:
Where name like 'name ' (AND or OR) second restriction;