title: Entity Framework 4.1 Virtual Properties
body: <p>If i have declared entity relationship in my model as virtual then there is no need to use the <code>Include</code> statement in my LINQ query, right ??-</p>
  
  <p>For ex: This is my model class :</p>
  
  <pre><code>public class Brand
  {
      public int BrandID { get; set; }
      public string BrandName { get; set; }
      public string BrandDesc { get; set; }
      public string BrandUrl { get; set; }
  
      public virtual ICollection&lt;Product&gt; Products { get; set; }
  }
  </code></pre>
  
  <p>Now, for the above model class, i dont need to use the <code>var brandsAndProduct = pe.Brands.Include("Products").Single(brand =&gt; brand.BrandID == 22);</code> . </p>
  
  <p>Instead, I can just use the simple <code>var brandsAndProduct = pe.Brands.Where(brand =&gt; brand.BrandID == 22);</code> and i will automatically have the related entity available when accessed.</p>
  
  <p>Am I correct in my understanding ?</p>
  
  <p>Also, please tell me in what situations i should prefer one over the other ?? </p>