在线等!!!急急急!!!翻译LINQ语句
select '收入' as kemu,isnull(sum(money),0)as money
from [statistics]
where SortType =1 and SortId in (
select Id from CashflowSort where CorpMoneySign =1)
union all
select '--'+c.Title,c.Allmoney from (
select Title,isnull(SUM(money),0) Allmoney,CorpMoneySign ,a.Id
from CashflowSort a
left join [statistics]
on
SortType=1 and a.Id= SortId
group by Title,CorpMoneySign,a.Id) c
where c.corpMoneySign =1 and c.Id not in
(select distinct ParentId from CashflowSort )
翻译成LINQ
from [statistics]
where SortType =1 and SortId in (
select Id from CashflowSort where CorpMoneySign =1)
union all
select '--'+c.Title,c.Allmoney from (
select Title,isnull(SUM(money),0) Allmoney,CorpMoneySign ,a.Id
from CashflowSort a
left join [statistics]
on
SortType=1 and a.Id= SortId
group by Title,CorpMoneySign,a.Id) c
where c.corpMoneySign =1 and c.Id not in
(select distinct ParentId from CashflowSort )
翻译成LINQ
...全文


LINQ
