0
我一直在開發一個小項目,並且無法將sql存儲過程轉換爲lambda。我的項目是C#MVC代碼。我已經看過這裏的一些帖子,但沒有成功。SQL存儲過程到Lambda
第一個版本,其中總的是向上舍入(爲每分鐘)分鐘和第二隻是轉換成分所有秒: 四捨五入每分鐘:
select ISNULL(noT,'?') as NType,count(*) as TotalCount,SUM((Duration + 59)/60) as TotalMinutes
from cHis
where hDate between @fromDate AND @toDate And Customer_CustomerID = @CustomerID and I_ID = @I_ID
group by ISNULL(noT,'?')
總四捨五入成分:
select ISNULL(noT,'?') as NType,count(*) as TotalCount,SUM((Duration)/60) as TotalMinutes
from cHis
where hDate between @fromDate AND @toDate And Customer_CustomerID = @CustomerID and I_ID = @I_ID
group by ISNULL(noT,'?')
我很樂意提供建議,希望有解決方案的一些想法。
感謝您提前給予幫助。