title: navigation property is not loaded
body: <p>I am using a <em>objectDataSource</em> to populate a <em>gridview</em>. I have 2 simple classes :</p>
  
  <pre><code>public class Employee
  {
      public int Id { get; set; }
      public string FirstName { get; set; }
      public string LastName { get; set; }
      public string Gender { get; set; }
      public int Salary { get; set; }
      public Department Department { get; set; }
  
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public class Department
  {
      public int Id { get; set; }
      public string Name { get; set; }
      public string Location { get; set; }
      public List&lt;Employee&gt; Employees { get; set; }
  }
  </code></pre>
  
  <p>I also have </p>
  
  <pre><code>public class EmployeeDBContext : DbContext
  {
      public DbSet&lt;Department&gt; Departments { get; set; }
      public DbSet&lt;Employee&gt; Employees { get; set; }
  
  }
  </code></pre>
  
  <p>now in my EmployeeRepository class i have </p>
  
  <pre><code>public List&lt;Department&gt; GetDepartments()
  {
      EmployeeDBContext employeeDBContext = new EmployeeDBContext();
      return employeeDBContext.Departments.Include("Employees").ToList();
  }
  </code></pre>
  
  <p>Even though I have added  <em>.Include("Employees")</em>, the employees are missing in <em>gridview</em>. what am I doing wrong here?</p>