title: Entity Framework Core - Child class values null
body: <p>I have one DBSet for all my child classes -&gt; base class is EventModel. When i try to load all EventUpdateCartModel (One child class from EventModel) with all datas the child datas always null. The base values are available like SettingsModel or AccountModel.</p>
  <h2>** My Question:**</h2>
  <p>How can i load all datas with the base class DbSet and not with the child class DbSet.</p>
  <p>Classes</p>
  <pre><code>public abstract class EventModel
  {
  
   ... Some Other Datas
   public virtual SettingsModel SettingsModel { get; set; }
   public virtual AccountModel AccountModel { get; set; }
  }
  
  public class EventUpdateCartModel : EventModel
  {
    public virtual UpdateCartDataModel UpdateCartDatas { get; set; }
  }
  
  public class UpdateCartDataModel
  {
    public long UpdateCartDataId { get; set; }
    public EventUpdateCartType Action { get; set; }  
  }
  
  </code></pre>
  <p>DbSet</p>
  <pre><code>  public DbSet&lt;EventModel&gt; Events { get; set; }
  
  </code></pre>
  <p>Read Rows</p>
  <pre><code> var events = context.Events.ToList();
  </code></pre>
  <p><img src="https://i.imgur.com/8Li5ZPA.png" alt="null" /></p>
  <p>When i add a new DbSet for the child class and try to get the value with this DbSet all values are available.</p>
  <p>DbSet</p>
  <pre><code> public DbSet&lt;EventUpdateCartModel&gt; Events_UpdateCart{ get; set; }
  
  </code></pre>
  <p>Read Rows</p>
  <pre><code>var events = context.Events_UpdateCart.ToList();
  
  </code></pre>
  <p><img src="https://i.imgur.com/afz7BMC.png" alt="not null" /></p>
  <h2>** My Question:**</h2>
  <p>How can i load all datas with the base class DbSet and not with the child class DbSet.</p>
  <p>I hope somebody can help me.</p>