Click here to Skip to main content
15,921,959 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
"select name,sum(value) from test group by name"
how to convert the above sql query into Linq query?

Please help me.
Posted

 
Share this answer
 
Comments
Espen Harlinn 30-Jan-12 8:37am    
5'ed!
var query=from n in test
group by name
select n.name,sum(value)
 
Share this answer
 
Comments
Espen Harlinn 30-Jan-12 8:37am    
5'ed!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900