title: The Include path expression must refer to a navigation property defined on the type
body: <p>I have the following Repository method:-</p>
  
  <pre><code>public AccountDefinition GetCustomer2(int id)
  {
      var c = entities.AccountDefinitions
              .Where(p=&gt;p.ORG_ID==id)
              .Include(a =&gt; a.SDOrganization)
              .Include(a2 =&gt; a2.SiteDefinitions)
              .Include(a3 =&gt; a3.SDOrganization.AaaPostalAddresses)
              .Include(a4 =&gt; a4.SiteDefinitions.SelectMany
                                (a5 =&gt; a5.DepartmentDefinitions.SelectMany
                                      (a6 =&gt; a6.SDUsers.Select
                                            (a7 =&gt; a7.AaaUser))))
                                                     .SingleOrDefault();
  
      return c;
  }
  </code></pre>
  
  <p>The the following action method which calls the above method:-</p>
  
  <pre><code>public ActionResult Details2(int id = 0)
  {
      AccountDefinition cd = repository.GetCustomer2(id);
      return View("copy",cd);
  }
  </code></pre>
  
  <p>but when i navigate to the Action Method , i get the following error on the repository class:-</p>
  
  <blockquote>
    <p>The Include path expression must refer to a navigation property
    defined on the type.  Use dotted paths for reference navigation
    properties and the Select operator for collection navigation
    properties.</p>
  </blockquote>
  
  <p>So what is wrong with my code?</p>