Link to home
Create AccountLog in
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

ASKER CERTIFIED SOLUTION
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of bmanmike39
bmanmike39

ASKER

Thanks! That was what I was looking for.
Not a problem bmanmike39, glad I was able to help.