Question : Cretaing a Union

I currently have the following:

            var q = from testTable in dbTest.testTables
                    select testTable.name;

            var q2 = from testTable2 in dbTest.testTable2s
                     select testTable2.name;

I was just wondering how I would union or similar operations on these. Is there any simple site out there that would show how to do basic SQL but using LINQ (eg: Select, Update, Delete, Join, Union etc.)

Answer : Cretaing a Union

As long as they are the same types, you just union them like this:
1:
2:
3:
4:
5:
IEnumerable q = from testTable in dbTest.testTables select testTable.name;
 
IEnumerable q2 = from testTable2 in dbTest.testTable2s select testTable2.name;
 
IEnumerable q3 = q.Union(q2);
Random Solutions  
 
programming4us programming4us