Hi,
I have a ProjectEntity, related to this entity is a SubProject and an ExternalProject. Each of these are also related to ProjectType.
When i try this code:
IPrefetchPath2 path = new PrefetchPath2(EntityType.ProjectEntity);
path.Add(ProjectEntity.PrefetchPathExternalProjects);
path.Add(ProjectEntity.PrefetchPathSubProjects);
path.Add(SubProjectEntity.PrefetchPathProjectType);
path.Add(ExternalProjectEntity.PrefetchPathProjectType);
It gives the following error:
The PrefetchPathElement you to tried to add is already added to this PrefetchPath.
Parameter name: elementToAdd
How can i fix this?
Best regards,
G.I.