-1

I already have the following code. But i dont know whats wrong. Why cant i do the group by with the select?

Any idea?

thanks!

lstPendientes = await (from item in db.erProcesaReenvio
                       group item by new
                       {
                           item.iderRegistroCredito,
                           item.cuentaClabe,
                           item.nombreCliente,
                           item.idCtaProcesar,
                           item.No_Cuenta,
                           item.afiliado,
                           item.ImporteCobrar
                       } into g
                       select new {
                           prop1 = g.iderRegistroCredito,
                           prop2 = g.cuentaClabe
                       });
Geoff James
  • 3,122
  • 1
  • 17
  • 36
dlerma
  • 49
  • 1
  • 5

1 Answers1

0

this works for me

g.Key.iderRegistroCredito

dlerma
  • 49
  • 1
  • 5