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

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

ruby on rails - Convert a Activerecord result with has_one associations into a single hash per record -

javascript - Read complete data from stream from onMessage -