I am using an adapter to fill up a entity collection in a standard way. My entity field has a string property say address.
EntityCollection<MyEntity> entityCol = new EntityCollection<MyEntity>();
IRelationPredicateBucket filter = new RelationPredicateBucket();
filter.PredicateExpression.Add(myFields.Address.ToString().Trim() == "");
adapter.FetchEntityCollection(entityCol , filter);
the previous code gave me a compilation error complaining about the invalid argument in the IPredicate at filter.PredicateExpression.Add(myFields.Address.ToString().Trim() == "");
I know filter.PredicateExpression.Add(myFields.Address == "Some Address"); will work but i need to do some string manipulation with myFields.Address field.
How can I do this in the filter?
And hint will be appreciated.
Thanks.
James