【发布时间】:2013-06-23 01:23:25
【问题描述】:
我需要在linq 中写下面的sql 查询。我为此写了linq 查询,没有子查询部分。我不知道如何在linq中编写子查询
select * from PART_TYPE Pt
left join
(select * from PART_AVAILABILITY where DATE_REF = '2013-06-20')pa
on Pt.PART_TYPE_ID = pa.PART_TYPE_ID
where Pt.VEHICLE_ID = 409
我该怎么做?
【问题讨论】:
-
查看此链接了解如何在 Linq 中编写子查询 stackoverflow.com/questions/418609/how-to-do-subquery-in-linq
-
@Rahul 谢谢。我会检查的。
标签: c# sql linq subquery sql-to-linq-conversion