A
Anders K. Jacobsen [DK]
(I hope its ok to ask here else please guide me en the right direction )
I want to use the getMulti with a RelationCollection so i can filter on
related tables, a PredicateExpression wich specifies the filter expression
on the related entity AND a prefetchPath wich i need so i dont get extensive
quries on antoher related table in the Collection that im retreinving to
when using it. The problem is that no GetMulti construct accepts these 3
classes. Is this possible another way?
If it maybe helps I have some partial code:
----------------
RelationCollection relationsToUse = new RelationCollection();
IPrefetchPath prefetchPath = new
PrefetchPath((int)EntityType.EjaculateEntity);
prefetchPath.Add(EjaculateEntity.PrefetchPathQuality);
relationsToUse.Add(EjaculateEntity.Relations.PersonEntityUsingPersonid);
relationsToUse.Add(PersonEntity.Relations.DonorEntityUsingPersonid);
IPredicateExpression selectFilter = new PredicateExpression();
selectFilter.Add(PredicateFactory.CompareValue(DonorFieldIndex.Number,
ComparisonOperator.Equal, donorid));
EjaculateCollection ec = new EjaculateCollection();
//ec.GetMulti(??)
Anders, Denmark
I want to use the getMulti with a RelationCollection so i can filter on
related tables, a PredicateExpression wich specifies the filter expression
on the related entity AND a prefetchPath wich i need so i dont get extensive
quries on antoher related table in the Collection that im retreinving to
when using it. The problem is that no GetMulti construct accepts these 3
classes. Is this possible another way?
If it maybe helps I have some partial code:
----------------
RelationCollection relationsToUse = new RelationCollection();
IPrefetchPath prefetchPath = new
PrefetchPath((int)EntityType.EjaculateEntity);
prefetchPath.Add(EjaculateEntity.PrefetchPathQuality);
relationsToUse.Add(EjaculateEntity.Relations.PersonEntityUsingPersonid);
relationsToUse.Add(PersonEntity.Relations.DonorEntityUsingPersonid);
IPredicateExpression selectFilter = new PredicateExpression();
selectFilter.Add(PredicateFactory.CompareValue(DonorFieldIndex.Number,
ComparisonOperator.Equal, donorid));
EjaculateCollection ec = new EjaculateCollection();
//ec.GetMulti(??)
Anders, Denmark