LLBLGen v.2.0.0.0 / .NET 2 / Adapter
Hi,
I have the following class model:
Person --> Employee
Person --> Customer
So Employee and Customer extend the Person class with additional fields.
Now I want to show a list of all Person objects including their type (Employee or Customer). It should also be possible to filter by Employees or Customers.
How can I do that?
From my point of view, the GetDependingRelatedEntities() method should actually return a list of child objects but the collection is always empty. That's what I've tried so far:
EntityCollection<PersonEntity> persons = new EntityCollection<PersonEntity>(new PersonEntityFactory());
mAdapter.FetchEntityCollection(persons, null);
foreach (PersonEntity person in persons) {
List<IEntity2> list = person.GetDependingRelatedEntities();
if (list.Count > 0)
Response.Write(person.FirstName); // --> This code line is never reached!!!!
}
I guess I have to specify a prefetch path to load the depending entities. How can I do that?