質問

What is the way to code this query with Linq to Entities (method based syntax)?

select sum(ceiling((PackSize)/50)) from table1;

Thanks

役に立ちましたか?

解決

var query = context.Table1.Sum(x => Math.Ceiling(x.PackSize/50));
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top