我需要构建一个 Linq 查询,它将显示如下结果:
Data:
Sales Month
----------------------
10 January
20 February
30 March
40 April
50 May
60 June
70 July
80 August
90 September
100 October
110 November
120 December
我需要根据这种情况获得结果: 月 x = 月 x + 上个月 ,这将导致:
Sales Month
--------------------
10 January
30 February (30 = February 20 + January 10)
60 March (60 = March 30 + February 30)
100 April (100 = April 40 + March 60)
.........
对如何构建此查询有任何帮助吗?
非常感谢!