Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Groupby and sum in Linq

$
0
0

Hello,

I have a table payment: id | memberId | typePaymentId | amount | date

i'm trying to do with linq groupby memberid and typePaymentId and sum amount. But it fails.

How can i do that in linq?

I whant sum amount where the memeberId and typePaymentId are same


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>