Tuesday, March 22, 2016

Sum by LINQ with Clause


decimal sum_amount = Convert.ToDecimal((from n in db.TestDbSet
                                                        where n.COMPID == compid && n.BILLID == billid && n.CHARGEID == chargeid  select n.AMOUNT).Sum());

No comments:

Post a Comment