I'm using LINQ to SQL like:
var b =
from s in context.data
select new
{
id = s.id,
name = s.name
myEnumerable = s.OneToMany
};
Where myEnumerable is of type IEnumberable<T>
and I want to now get a subset of b
based upon properties of the individual items of myEnumerable
. For example, say <T>
has properties Berry
and BerryID
, I would want to do something like:
b =
from p in b
where //p.myEnumerable.myType.BerryID== 13
select p;
I'm feel like I'm missing something easy...