LINQ query for tag system: Matching any of several tags?
Posted
by David Veeneman
on Stack Overflow
See other posts from Stack Overflow
or by David Veeneman
Published on 2010-03-24T20:56:38Z
Indexed on
2010/03/24
21:23 UTC
Read the original article
Hit count: 182
I am just getting started with LINQ. I am creating an Entity Framework app that uses the canonical Post
and Tag
model. A Post
contains an ID
, Text
, and Tags
, and a Tag
contains an ID
, a Name
, and Posts
.
A previous thread on StackOverflow showed me how to query for a Post
that matches all Tag
objects (A and B and C) in a search list. But how would I query for a Post
that matches any Tag
(A or B or C) in the list? Thanks for your help.
© Stack Overflow or respective owner