cl z

cl z

  • 0
  • 3
  • 121

Convert a sql query into Linq

Jul 6 2020 3:53 AM
 Can anyone help me with this query convert?
 
select rl.Id, rl.IdTestataListino, rl.IdProdotto, rl.Prezzo, pr.Descrizione, count(*) as N_Ordini
from RigaListino as rl
left join RigaOrdine as ord
on rl.IdProdotto = ord.IdProdotto
left join Prodotto as pr
on pr.Id = rl.IdProdotto
where rl.IdTestataListino = 2
group by rl.Id, rl.IdTestataListino, rl.IdProdotto, rl.Prezzo, pr.Descrizione
order by N_Ordini

Brought to you by:

Answers (2)