Hi Mike, there's not a direct way to do that. However, you can workaround this if you rewrite the SQL:
UPDATE authors
SET state = 'ZZ'
FROM authors
WHERE authors.au_id IN
(SELECT DISTINCT TOP 2 authors.au_id
FROM authors
ORDER BY au_lname)
So, at code you would use a FieldCompareSetPredicate. Something like:
AuthorEntity authorNewValues = new AuthorEntity();
orderNewValues.State = "ZZ";
ISortExpression sorter = new SortExpression();
sorter.Add(new SortClause(AuthorFields.AuLname, null, SortOperator.Ascending));
FieldCompareSetPredicate inSetFilter = new FieldCompareSetPredicate(AuthorFields.AuId, null, AuthorFields.AuId, null, SetOperator.In, null, null, "", 10, sorter);
IRelationPredicateBucket filter = new RelationPredicateBucket();
filter.PredicateExpression.Add(inSetFilter);
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
adapter.UpdateEntitiesDirectly(orderNewValues, filter);
}
Regards