Last active
February 6, 2020 11:56
-
-
Save omonien/68f9a5d6a512a905affc74200301f3a1 to your computer and use it in GitHub Desktop.
UNION in Aurelius
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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