[CSHARP-601] Linq to Aggregation Framework Created: 11/Oct/12  Updated: 20/Jan/16  Resolved: 22/Apr/15

Status: Closed
Project: C# Driver
Component/s: Linq
Affects Version/s: 1.6.1
Fix Version/s: 2.1

Type: New Feature Priority: Major - P3
Reporter: Craig Wilson Assignee: Craig Wilson
Resolution: Done Votes: 43
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CSHARP-652 No serializer found for type {0} exce... Closed
is depended on by CSHARP-994 OData $expand and $top query options ... Closed
is depended on by CSHARP-792 support new aggregation pipeline oper... Closed
is depended on by CSHARP-456 Support linq projections to only pull... Closed
Duplicate
duplicates CSHARP-592 Linq Sum Operator throws exception Closed
is duplicated by CSHARP-903 IQueryable<T> not fully implemented Closed
Related
related to CSHARP-860 asp.net web api / odata $select and d... Closed
Epic Link: Rewrite Linq

 Description   

Add in support for creating agg framework pipelines from linq.



 Comments   
Comment by Githook User [ 23/Apr/15 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-601: Add CancellationToken parameter to MongoQueryable extension methods.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/725e09effcc4dec7c5e6cac99cf3f7a2572e793a

Comment by Githook User [ 22/Apr/15 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-601: Code review changes.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/1f641eaa7ad708cf82f3630f699a478677dc1897

Comment by Githook User [ 22/Apr/15 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-601: implemented an IQueryable provider for the new API.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/29ec3629cf8d3a4e6e26fe01758ba0e42db88797

Comment by Jason Singleton [ 29/Jan/15 ]

I will use your source releases for now then instead of the packages. I will let you know if I have any issues

Thanks for the info pete going to use the 2.0 for now.

Comment by Pete Smith [ 29/Jan/15 ]

@craiggwilson No worries! I sent you some info about it on 27th Oct too which may be kicking around in your emails still.

Comment by Craig Wilson [ 29/Jan/15 ]

roysvork I didn't even know you did this. I need to pay more attention to github notifications.

jsingleton We have beta1 out and were planning on releasing beta2 on Friday. Final/stable release will be within a month or 2. We'd love feedback and bug finding help, so any working with the betas would be awesome. Alternatively, you could use our build feed (https://www.myget.org/gallery/mongodb) MongoDB.Driver-Build and get the latest as we push them and they pass CI.

Comment by Jason Singleton [ 29/Jan/15 ]

Thanks for the quick reply and that syntax is a lot more friendly I will go with that for now. Any eta on 2.0 stable?

Comment by Pete Smith [ 29/Jan/15 ]

@jsingleton Depending on how you feel about this, you could use the branch I made this pull request from: https://github.com/craiggwilson/mongo-csharp-driver/pull/1. It has some pivotal fixes to unfinished functionality from craigs branch.

A client of mine is using this branch in production with no major issues, although they do have a fairly narrow use case. I would be happy to provide examples of the usage patterns for you.

Comment by Craig Wilson [ 29/Jan/15 ]

Yes. This linq rewrite isn't going to make it into our 2.0 release and is pushed back to 2.1.

However, there is quite a bit of work enabling you to work with expression trees in the new API. You can see an example of this here:https://groups.google.com/forum/?pli=1#!topic/mongodb-user/Lw64viphhsA. (He's found a bug, but just for the idea). If you are comfortable using method syntax, this is a good replacement in the mean time.

Comment by Jason Singleton [ 29/Jan/15 ]

Is the branch above still the latest to experiment with this from?

Comment by Craig Wilson [ 17/Sep/14 ]

You can use this I think: https://github.com/craiggwilson/mongo-csharp-driver/tree/linq

It is the most up-to-date, but still pretty old (a few months) and hasn't been code-reviewed or fully completed, but all current tests pass. It's also way behind master right now.

Comment by Pete Smith [ 17/Sep/14 ]

Hey folks, just wondering if there is a nightly build or particular commit that we could experiment with this from? Thanks!

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