Hi there.
I have two entities in relation 1:m.
I need to fetch the parent entity (partner) including the entity collection of the descendant entity. I came up with this.It works,but i not sure if this is the proper approach calling the adapter twice. Shouldn't i use PrefetchPath ? I'm pretty new to llblgen so i'm little bit confused :-)
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
PartnerEntity partner = new PartnerEntity(id);
EntityCollection<UcetEntity> ucty = partner.Ucet;
adapter.FetchEntity(partner);
adapter.FetchEntityCollection(ucty, partner.GetRelationInfoUcet());
return partner;
}
Thx in advance!