Hi,
I have two tables
The parent is Project and the child is ProjectAccount
I want to download the specific record from Project, with the ProjectAccount object that has a specific date.
The code is:
Dim PrefetchPath as IPrefetchPath2=New PrefetchPath2(CType(EntityType.ProjectEntity, Integer))
dim MyProject as New ProjectEntity(projectID)
Dim filter as IRelationPredicateBucket=New RelationPredicateBucket
filter.PredicateExpression.Add(PredicateFactory.Between( _
ProjectAccountFieldIndex.Date, _
elszamolasDate.AddDays(-1), _
elszamolasDate.AddDays(1)))
PrefetchPath.Add(ProjectEntity.PrefetchPath.ProjectAccountCol, 1, filter)
Here I get an Invalid Cust Exception.
I tried to ad the relation to MyProject, and then ad the relation to the filter, but the result was the same.
What amI missing?
Thanks
Gabor