Hi!
I instantiate an entity collection by using Activator.GetInstance. Now I want to analyze the collection and for each field containing a FK, I'd like to add a prefetch path, so the related collections are fetched when i call GetMulti(...) later.
Because the entity collection is created dynamically, I don't know the property names of the prefetch paths the entity contains. And because the prefetch paths of an entity seem to be static properties instead of a collection, it is not possible to access them when the collection is created dynamically.
I tried looping through the entities fields to get the information i want, creating my own PrefetchPathElements (tons of parameters
), and everything ended in a mess. Is there any other way? I'd be thankful for any suggestion