【发布时间】:2014-05-30 11:11:15
【问题描述】:
请有人能帮我将以下 SQL 查询转换为 LINQ
select p.Description,SUM(s.TotalArea) as TotalArea from Stands s
inner join ContractProducts cp on s.Id = cp.StandId
inner join Products p on cp.ProductId = p.Id
where s.EventId = 1
group by p.Description
提前致谢
【问题讨论】:
-
转换为 lambda 是什么意思? lambda 与 sql 和 linq 无关,它只是一个匿名方法。
-
请发布您到目前为止所尝试的内容。这个问题看起来有点懒。