// This doesn't work
ActiveDirectoryUserEntity _user = new ActiveDirectoryUserEntity();
_adapter.FetchEntityUsingUniqueConstraint(_user, new PredicateExpression(IC.HelperClasses.ActiveDirectoryUserFields.UserId == "halamerica\\hbbz733"));
_contact.ContactGuid = _user.ContactGuid;
IRelationPredicateBucket _bucket = _contact.GetRelationInfoAssignedContact();
PrefetchPath2 _prefetch = new PrefetchPath2((int)IC.EntityType.ContactEntity);
_prefetch.Add(IC.EntityClasses.ContactEntity.PrefetchPathAssignedContact);
_prefetch.Add(IC.EntityClasses.NetworkDeviceContactEntity.PrefetchPathNetworkDevice);
_adapter.FetchEntity(_contact, _prefetch);
Please Try the following:
PrefetchPath2 _prefetch = new PrefetchPath2((int)IC.EntityType.ContactEntity);
_prefetch.Add(IC.EntityClasses.ContactEntity.PrefetchPathAssignedContact).SubPath.Add(IC.EntityClasses.NetworkDeviceContactEntity.PrefetchPathNetworkDevice);
Note:
You started your questions using a domain model of Employees, Contacts and EscalationLists, then you used Autos, Cars, Truks...etc & now you are using another different model (Netowrk, Device, Contacts...etc)
This makes it hard for anyone to follow up this thread.