[CSHARP-592] Linq Sum Operator throws exception Created: 05/Oct/12  Updated: 20/Mar/14  Resolved: 11/Oct/12

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.6
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: senthil Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7 , .NET 4.0


Issue Links:
Duplicate
is duplicated by CSHARP-601 Linq to Aggregation Framework Closed

 Description   

my C# driver version is 1.6.0.4624
I was trying use Sum. Here is my code
var q = coll.AsQueryable().Where(rw => rw.myDate == dt).Sum(t=>t.Sales);

I get following exception
System.NotSupportedException: The Sum query operator is not supported.



 Comments   
Comment by Craig Wilson [ 11/Oct/12 ]

Created new feature ticket, CSHARP-601, for linq to agg framework.

Comment by Robert Stam [ 05/Oct/12 ]

Version 1.6 doesn't support any aggregation operators.

We are planning to add support for LINQ aggregation operators by mapping them to MongoDB aggregation framework pipelines, but we don't know what version of the driver that support will appear in.

Generated at Wed Feb 07 21:37:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.