What is the correct "Aureilus way" of doing select DISTINCT, and select TOP ?
One way would be
var
Results: TObjectList<TCriteriaResult>;
begin
Results := ObjectManager.Find<TMyObject>
.Select(TProjections.Group('AttributeNameForDistinctValues'))
.Take(10)
.ListValues;
{...}
2 Likes
This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.