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 -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -