Avatar of bmanmike39
bmanmike39
 asked on

How do I SUM a column in a table with entity (asp.net c#)

I am trying to SUM the Amount(getPO.Amount) column in my returned list.


var getPO = pr.Invs.Where(z => z.invNumber == invNumber).ToList();

var getSum =  "do somthing getPO.sum();"

Open in new window

ASP.NETC#.NET Programming

Avatar of undefined
Last Comment
Fernando Soto

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Fernando Soto

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
bmanmike39

ASKER
Thanks! That was what I was looking for.
Fernando Soto

Not a problem bmanmike39, glad I was able to help.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck