using System.Collections.Generic;
public static void Main()
foreach (var item in Do())
public static IQueryable Do()
IEnumerable<dynamic> queryResults = null;
IEnumerable<Table> table = (new List<Table>{ new Table { column1 = "Table" } });
IEnumerable<Chair> table2 = (new List<Chair>{ new Chair { column1 = "Chair" } });
queryResults = (from t1 in table
select new { column1 = t1.column1 });
queryResults = (from t2 in table2
select new { column1 = t2.column1 });
foreach (var item in queryResults)
var someresult = (from t3 in table where t3.column1 == item.column1 select t3);
return queryResults.AsQueryable();
public string column1 { get; set; }
public string column1 { get; set; }