title: Getting Error: "A specified Include path is not valid. The EntityType Field' does not declare a navigation property"
body: <p>Created method:</p>
  
  <pre><code> public List&lt;Field&gt; GetScheduleDetails()
   {    
       var schedulefields = DBcontextFactory.Context.Set&lt;Field&gt;).Include("ScheduleField").ToList();
   }
  </code></pre>
  
  <p>With the above method i am trying to fetch all joined(field.fieldid=schedulefield.fieldid) records from both tables. The field table is related with schedulefield table. Sorry if i am not familiar with technical terms. </p>
  
  <p>Field Model:</p>
  
  <pre><code>public partial class Field : DOIEntity
  {
  
      public Field()
      {
          this.FilerResponses = new HashSet&lt;FilerResponse&gt;();
          this.ScheduleFields = new HashSet&lt;ScheduleField&gt;();
      }
  
      public int FieldId { get; set; }
      public string FieldDisplayName { get; set; }
      public int FieldTypeId { get; set; }
      public string HelpText { get; set; }
      public Nullable&lt;bool&gt; OtherTextAllowed { get; set; }
      public Nullable&lt;int&gt; ChoiceGroupId { get; set; }
  
      public virtual FieldType FieldType { get; set; }
      public virtual ICollection&lt;FilerResponse&gt; FilerResponses { get; set; }
      public virtual ICollection&lt;ScheduleField&gt; ScheduleFields { get; set; }
  }
  </code></pre>
  
  <p>ScheduleField Model:</p>
  
  <pre><code>public partial class ScheduleField
  {
  
      [Key]
      public int ScheduleId { get; set; }
      public int FieldId { get; set; }
      public byte SortOrder { get; set; }
      public Nullable&lt;bool&gt; IsMandatory { get; set; }
      public Nullable&lt;int&gt; ParentFieldId { get; set; }
      public Nullable&lt;int&gt; ParentChoiceId { get; set; }
  
      public virtual Field Field { get; set; }
      public virtual Schedule Schedule { get; set; }
  }
  </code></pre>
  
  <p>When I call the method I am getting this error:</p>
  
  <blockquote>
    <p>A specified Include path is not valid. The EntityType
    'WorldBank.DOI.Data.Field' does not declare a navigation property with
    the name 'ScheduleField'.</p>
  </blockquote>
  
  <p>Why am I getting this error?</p>