I have an object User.
User 1..N Tags(string).
For instance, i have a List of Tag object. How can i query the User to find all the user that have at least 1 Tag in side the list of tags?
Thanks in advance 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming your code snippet means you have a property
Tagsof typeFoo<string>whereFoois some sequence type, you could just use:(Actually, that’s assuming you have a list of strings as
Tags– the question is somewhat unclear. However, hopefully it’ll be enough to sort you out.)EDIT: Okay, with the details in the comments, I think you probably just need: