Hi,
I am working with an EntityCollection. The EntityCollection need to be filtered and I used
IRelationPredicateBucket filter = new RelationPredicateBucket();
filter.PredicateExpression.Add(WiremessageFields.WireServiceId == wireServiceID);
filter.PredicateExpression.AddWithAnd(WiremessageFields.Headline == 's' | WiremessageFields.Category == 'q');
to add filter entries. I have no problem to add filters this way.
The problem is, the filter information in my case was stored in a database table field. For example the previous code will be stored in a field:
WireServiceID = 1 AND (Category = 's' OR Category ='q')
I want to apply these filters on to the EntityCollection when I fetch it. Apparently I cannot directly add this string to the PredicateExpression. I am trying to do something like
filter.PredicateExpression.Add("
WireServiceID = 1 AND (Category = 's' OR Category ='q')");
Is there a way to do this? Thanks.