I have no idea how to get Total Value = 755.00 from this select with Linq ?
| ID |Qtde | Valor | Total |
| 1 | 10 | 23.00 | 230.00|
| 1 | 15 | 10.00 | 150.00|
| 1 | 15 | 25.00 | 375.00|
Total: 755.00
I imagine something like this:
var _total = from cta in ListConta()
.Where(c => c.ContaID == pContaID)
select new ContaView
{
ContaID = cta.ContaID ,
Qtde = cta.Qtde,
ValorTotal = cta.Pedido.ItensPedido.Sum(c => c.Valor)
};