I have a BaseEntity and a set of derived objects: DerivedEntity1 , DerivedEntity2 , etc. Each derivative document is stored in its collection. Is there a way to get all the documents that are obtained from the base type? Something like that:
var baseEntities = documentSession.Query<BaseEntity>().ToList();
I found several ways, but they should know all types of entities. It does not suit me, because in my case these types are generated dynamically.
source share