I have a base entity:

public class BaseEntity 
{
   public string Id { get; set;}
}

And a couple of descendants:

public class DerivedWithChildren : BaseEntity 
{
  public IColletion<BaseEntity> Children { get; set; }
}

public class Derived : BaseEntity
{
   public string JustOneMoreProperty { get; set }
}

When I try to load them from the DB, DerivedWithChildren instances never have Children. Is it possible?

0 Answers