I\'m currently working my way through the learning curve that is LINQ and I could really use some assistance. I don\'t know if what I want is possible, but if I had to wager, I
You want to use the SelectMany
extension method.
_tables.SelectMany(t => t.Indexes)
var rows = from item in table select item;
In addition to tbischel's answer, the query expression version of what you're going for is below.
var indexes = from TableInfo tab in _tables
from index in tab.Indexes
select index;
You don't need the where clause and you also shouldn't need to tell it what tab is
And you will need to use SelectMany
var indexes = (from tab in _tables).SelectMany(t => t.Indexes)
Or you could do it like this
var indexes = from tab in _tables
from t in tab.Indexes
select t;
That should be a little more familiar syntaz