Multiple SUM using LINQ

后端 未结 5 2669
无人共我
无人共我 2021-02-20 18:14

I have a loop like the following, can I do the same using multiple SUM?

foreach (var detail in ArticleLedgerEntries.Where(pd => pd.LedgerEntryType == LedgerEn         


        
5条回答
  •  清歌不尽
    2021-02-20 18:38

    You'd be able to do this pivot-style, using the answer in this topic: Is it possible to Pivot data using LINQ?

提交回复
热议问题