Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
Elements.PersonBuilder.DefaultSort("LastName");
Elements.PersonBuilder.DefaultSort("FirstName");

The example above is already optimal, but let's examine below how we could write it using a query aspect.

Code Block
Elements.PersonBuilder.Filter(
    q => q.OrderBy("LastName").OrderBy("FirstName")
  )
);

The example above is trivial, but the aspect can include any query elements it wants (see Query API).

...