title: Entity Framework-Getting value from navigational property
body: <p>I have 3 entities in my model. A->B->C, where A is the super parent and C is the child. I C is derived from B, and B is derived from A. I am loading C into a datagrid, and I need to be able to display values from B and A. Right now I can display values of B by saying:</p>
  
  <pre><code> dgIA.ItemsSource = ctx.C.OfType&lt;SOME_TYPE&gt;().Include("B");
  </code></pre>
  
  <p>And in my xaml I say:</p>
  
  <pre><code>  &lt;DataGridTextColumn Header="property 1" Binding="{Binding A.Name}"/&gt;
    &lt;DataGridTextColumn Header="property 2" Binding="{Binding B.Name}"/&gt;
    &lt;DataGridTextColumn Header="property 3" Binding="{Binding Frequency}"/&gt;//a value in C
  </code></pre>
  
  <p>I need to be able to display A.Name, but if I try to include A by saying:</p>
  
  <pre><code>ctx.C.OfType&lt;SOME_TYPE&gt;().Include("B").Include("A");
  </code></pre>
  
  <p>I get the exception:</p>
  
  <p><strong>A specified Include path is not valid. The EntityType 'DB.SOME_TYPE' does not declare a navigation property with the name 'A'.</strong></p>
  
  <p>I understand why it is doing this, as My entity C only has a navigational property to B, and B has a navigational property to A, but I want C to be able to get a value from A in  the way that I have shown. How would I do this? Thank you very much!</p>