DocumentHelper.GetDocuments.InRelationWith(multiple Guids)

kyle shapiro asked on October 28, 2015 18:36

Hello everyone. I'd like to start by saying that my question is nearly identical to question asked last year. but no answer was ever posted there. I am building a custom control and would like to do something like:

DocumentHelper.GetDocuments().InRelationWith(LIST OF GUIDs)

I have created a generic List of Guids, and I would like for GetDocuments() to return documents that are in relation with ANY of the Guids in that collection. Can I not use InRelationWith to do this functionality? If I need to write a custom query, what methods would I start with? Thank you.

Recent Answers

kyle shapiro answered on October 28, 2015 21:41

I found a way to reach the desired result, but I fear the solution is horribly inefficient. For each guid in a guid list, for each document in relation with that guid, do something.

0 votesVote for this answer Mark as a Correct answer

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