title: Using Linq to select Place object with Tag.Name = "Restaurant" (many to many)
body: <p>asp.net MVC 4 app - linq to objects with many to many relationship</p>
  
  <p>Place object</p>
  
  <pre><code>public virtual int PlaceID { get; set; }
  public virtual ICollection&lt;Tag&gt; Tags { get; set; }
  public virtual string Name { get; set; }
  </code></pre>
  
  <p>Tag object</p>
  
  <pre><code>  public virtual int TagID { get; set; }
    public virtual string Name { get; set; }
    public virtual string NamePlural { get; set; }
    public virtual ICollection&lt;Place&gt; Places { get; set; }
  </code></pre>
  
  <p>I'm new to Linq - and need a statement to select all places with the related tag "restaurant". Thanks.</p>