title: EF TPH Inheritance Query
body: <p>Trying to implement a very simple TPH setup for a system I'm making, 1 base, 2 inherited classes.</p>
  
  <p>However the inherited classes all belong to the same entity set, so within my ObjectContext using loop, I can only access the base abstract class. I'm not quite sure how I get the elements which are concrete classes? (I've also converted it to using POCO).</p>
  
  <p><img src="https://i.stack.imgur.com/AJttL.png" alt="alt text"></p>
  
  <p>Then within  my application using the Entities:</p>
  
  <pre><code>using (SolEntities sec = new SolEntities()) {
      Planets = sec.CelestialBodies;
  }
  </code></pre>
  
  <p>There's a CelestialBodies entity set on <code>sec</code>, but no Planets/Satellites as I'd expect.</p>
  
  <p>Not quite sure what needs to be done to access them.</p>
  
  <p>Thanks</p>