我正在写一个这样的查询:使用内部集合查询另一个子查询
var TheQuery = (from t in MyDC.Table1
where ....
select new SomeContainerModel()
{
Collection1 = (from t2 in MyDC.Table2
....
select new SomeModel()
{
SomeID = t2.SomeID
}
Collection2 = (from x in Collection1
from t3 in MyDC.Table3
where x.SomeID == t3.SomeOtherID
我想要做的,是使用Collection1
结果作为Collection2
输入。
这可能吗?
好的,谢谢你的回答! – frenchie