title: EF Intersect Syntax
body: <p>A UI allows users to select one or many tags.  I would like to select all Nodes that have ALL that tags the user entered associated, <strong>not</strong> just a single tag.</p>
  
  <pre><code>public JsonResult SearchNodesByTags(string[] tags)
  {
      var dbTags = _DbContext.Tags.Where(t =&gt; tags.Contains(t.DisplayName)).ToList();
      var nodes = _DbContext.Nodes.Where(n =&gt; n.Tags.Intersect(dbTags).Any());  
      // Error about intersection with non primitive
  
      return Json(nodes);
  }
  </code></pre>