How do I convert this statement into LINQ?
SELECT Sum(Balance) FROM account WHERE name='stocks' AND userid=290;
decimal sumLineTotal = (from od in account
where name == 'stocks' && userid == 290
select Balance).Sum();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With