I have a fetched entity A. This entity has field CollectionOfB "mapped on relation" (1:n). EntityCollection<B> in this field wasn't fetched (for any reason).
What is the simplies, easiest and the most logic way to fetch data for this field/collection using the adapter?
I just can't accept that solution could look like that:
//AEntity InstanceOfA - previously fetched entity
//I want to fetch InstanceOfA.CollectionOfB field
IRelationPredicateBucket filter = new RelationPredicateBucket();
filter.PredicateExpression.Add(BFields.RelationId == InstanceOfA.Id);
DataAccessAdapter adapter = new DataAccessAdapter();
adapter.FetchEntityCollection(InstanceOfA. CollectionOfB, filter);
Regards,
J
(hope my very first approach to LLBLGEN will not end in disaster)