I need your help for a small problem. I would like to make the following LINQ query dynamic (at runtime) because I don´t know how many tables there will be in the database (the tablenames are known while runtime).
var query = from row1 in ds.Tables["tab1"].AsEnumerable()
from row2 in ds.Tables["tab2"].AsEnumerable()
from row3 in ds.Tables["tab3"].AsEnumerable()
select new { row1, row2, row3 };
Is this possible at generate a dynamic LINQ query in this case and write the result to a datatable or array?
Thanks in advance!