Hi Guys,
I have been attempting to dynamically build a LinQ query and found the Where(AND) working fine, however I am now struggling to get an OR condition to work.
I have the following: -
Dim xQuery = xe in doc.descendants.elements("BLAH")
if myString <> "" Then
xQuery = xQuery.where(Function(I) i.Descendants.Elements("BLAHSUB").value = myString)
end if
I now have a list of strings I want to build an 'OR' condition from, is this possible and how can IK achieve this.
Thanks for any help
I have been attempting to dynamically build a LinQ query and found the Where(AND) working fine, however I am now struggling to get an OR condition to work.
I have the following: -
Dim xQuery = xe in doc.descendants.elements("BLAH")
if myString <> "" Then
xQuery = xQuery.where(Function(I) i.Descendants.Elements("BLAHSUB").value = myString)
end if
I now have a list of strings I want to build an 'OR' condition from, is this possible and how can IK achieve this.
Thanks for any help