linq group & sum query -


My single unit is a framework object that represents a telephone call.

How can I group the dialed numbers? {Number = xxx, durationSum = yyy} by period and project

I am a linq novice and can not get it properly.

I think you want something like this:

  var Query = db in call Call group calls by call. Select the number in the new {number = g.Key, avadhisham = g. SUM (c => d. Duration)};    

Comments

Popular posts from this blog

php - Creating canonical URLs with custom route-classes -

mysql - Formatting problem with PHP DateTime Difference when used as part of an equation -

Mysql Local server hardware -