Hi All,
I have the following prefetch code:
PrefetchPath.Add(DistrictEntity.PrefetchPathDistrictUser, 0, New PredicateExpression(DistrictUserFields.UserName = userName)) _
.SubPath.Add(DistrictUserEntity.PrefetchPathDeptSetUser) _
.SubPath.Add(DeptSetUserEntity.PrefetchPathDeptSetUserJob) _
.SubPath.Add(DeptSetUserJobEntity.PrefetchPathJob) _
.SubPath.Add(JobEntity.PrefetchPathJobApp) _
.SubPath.Add(JobAppEntity.PrefetchPathApplication, 0, New PredicateExpression(ApplicationFields.ApplicationId = applicationId))
It works fine. Want I want to add is another path that goes from DeptSetUser to DeptSet it has a n:1 relationship so I should be able to access the entity using DeptSetUser(n).DeptSetEntity
Any help would be great.
Thanks,
FIshy