【发布时间】:2009-04-30 21:03:53
【问题描述】:
我有一个与此类似的语句,我需要在 Linq 中运行。我开始使用 .Contains,并且可以让第一层工作,但似乎无法掌握我需要做什么才能获得其他层。
这是 SQL 语句:
select *
from aTable
where aTableId in
(select aTableId from bTable
where bTableId in
(select bTableId from cTable
where cTableId in
(select cTableId from dTable
where dField = 'a guid'
)
)
)
【问题讨论】:
标签: c# sql linq linq-to-sql