var query = context.Table1.Sum(x => Math.Ceiling(x.PackSize/50));
Sum and Ceiling in Linq to Entities
-
21-07-2023 - |
Pregunta
What is the way to code this query with Linq to Entities (method based syntax)?
select sum(ceiling((PackSize)/50)) from table1;
Thanks
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow