0
我有列表包含:(無殘留列數據)如何獲得linq中的剩餘價值?
Recive Pay Remain
---------------------------------------------
2 0 0
0 4 0
3 0 0
4 0 0
而且我有initialRecieve=1
可變
如何計算C#中的次還列獲得如下的結果?
Recive Pay Remain
---------------------------------------------
2 0 3 (initialRecieve+Recive-Pay)
0 4 -1 (Remain+Recive-Pay)
3 0 2 (Remain+Recive-Pay)
4 0 6 (Remain+Recive-Pay)
到目前爲止,你已經嘗試LINQ是什麼? –
如果'Remain'列是基於'Receive'和'Pay'的*計算列*,那麼爲什麼不用SQL爲此寫一個函數呢? –
我有內存中的文檔列表,我想添加剩餘列值。 OriginalDouments is List –