How to Select "DISTINCT" and TOP?

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

Thank you @Farias_Anderson

1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.