I can create a relation predicate bucket using an operator overload, e.g.
IRelationPredicateBucket filter = new RelationPredicateBucket(PersonFields.Ssn == ssn);
can I do something similar with a sort expression? if not, is this in the works for a later release?
my current code:
public EntityCollection PhoneNumberTypes()
{
EntityCollection col = new EntityCollection(new PhoneNumberTypeEntityFactory());
ISortExpression sort = new SortExpression(DefaultSort());
return FetchCollection(col, null, 0, null, 0, 0);
}
public static ISortClause DefaultSort()
{
return SortClauseFactory.Create(PhoneNumberTypeFieldIndex.PhoneTypeDescr,SortOperator.Ascending);
}
it would be nice to use something like this...
public EntityCollection PhoneNumberTypes()
{
EntityCollection col = new EntityCollection(new PhoneNumberTypeEntityFactory());
ISortExpression sort = new SortExpression(++PhoneNumberTypeFields.PhoneTypeDescr); // sorts ascending
// ISortExpression sort = new SortExpression(--PhoneNumberTypeFields.PhoneTypeDescr); // sorts ascending
return FetchCollection(col, null, 0, null, 0, 0);
}