我正在使用 LINQ to SQL,例如:
var b =
from s in context.data
select new
{
id = s.id,
name = s.name
myEnumerable = s.OneToMany
};
其中 myEnumerable 是类型IEnumberable<T>
,我现在想b
根据myEnumerable
. 例如,说<T>
有属性Berry
和BerryID
,我想做类似的事情:
b =
from p in b
where //p.myEnumerable.myType.BerryID== 13
select p;
我觉得我错过了一些简单的东西......