Skip to content

Instantly share code, notes, and snippets.

@omonien
Last active February 6, 2020 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omonien/68f9a5d6a512a905affc74200301f3a1 to your computer and use it in GitHub Desktop.
Save omonien/68f9a5d6a512a905affc74200301f3a1 to your computer and use it in GitHub Desktop.
UNION in Aurelius
//Concatenate two lists - which basically is what a union of two SQL SELECTS does
LCustomersUS := LManager.Find<TCustomer>
.Where((Linq['Country'] = 'US')
.List;
LCustomersCA := LManager.Find<TCustomer>
.Where((Linq['Country'] = 'CA')
.List;
LCustomersNorthAmerica.AddRange(LCustomersUS);
LCustomersNorthAmerica.AddRange(LCustomersCA);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment