Hi all,
Im grabbing entities from a table and applying a filter so that I do not get all of the results.
EntityCollection directoryCollection = new EntityCollection(new DirectoryEntityFactory());
RelationPredicateBucket A = new RelationPredicateBucket();
A.PredicateExpression.Add(PredicateFactory.CompareValue( TotalIngenuity.Module.Directory.DAL.DirectoryFieldIndex.PortalID,ComparisonOperator.Equal,0));
A.PredicateExpression.AddWithAnd(PredicateFactory.CompareValue( TotalIngenuity.Module.Directory.DAL.DirectoryFieldIndex.Type,ComparisonOperator.Equal,true));
DataAccessAdapter adapterForDirectory = new DataAccessAdapter();
adapterForDirectory.FetchEntityCollection(directoryCollection, A);
This should fill directoryCollection with all the relevant directory entries but it throws an error.
Anyone know what I'm doing wrong?
Thanks,
John