Correct usage of Or() method in TreeNode.SelectNodes() query.

Targutai Yesugei asked on December 18, 2017 07:28

Ok, i'll try to update my previous question.

There is a query i'm using.

    .WhereContains(DocumentPDFPageType.TitlePortalName, searchText);

How can I update this query, so it will search in Summary column too?

I tried to add Or().WhereContains(DocumentPDFPageType.SummaryPortalName, searchText);

but it is working incorrectly.

Correct Answer

Ilesh Mistry answered on December 18, 2017 08:44


You can normally achieve something similar with Nested where conditions. Have a look at this page for some guidance.

Nested where conditions

Thanks Ilesh

0 votesVote for this answer Unmark Correct answer

Recent Answers

Targutai Yesugei answered on December 18, 2017 09:17

Wow, thank you, Ilesh!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.