[CSHARP-1445] Support arbitrary filters in the LINQ provider. Created: 15/Oct/15  Updated: 23/Sep/16  Resolved: 05/Aug/16

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

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

Issue Links:
Duplicate
duplicates CSHARP-1444 LinqToMongo.Inject throws InvalidOper... Closed
is duplicated by CSHARP-1701 how we can use $where from c# driver Closed
Related
related to CSHARP-1737 LinqToMongo.Inject() throws Execption Closed

 Description   

LINQ cannot express everything MongoDB can. There should be some generic syntax to support including a FilterDefinition into a LINQ query.



 Comments   
Comment by Githook User [ 05/Aug/16 ]

Author:

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

Message: CSHARP-1445: Added support for injecting arbitrary FilterDefinitions.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/bcd3d9699f8df096ebf0c3d906223384ffbfcd3b

Comment by Chris Robison [ 13/Apr/16 ]

I would like to see this implemented. My specific use case is that some times I customize the construction of a query based on the inputs I get. For instance, if someone wants to filter in a search by the certain field, then I conditionally add that to the query. In the 1.x driver, Inject() was a very convenient way creating a customize query and passing it to LINQ. I'd still like to do that.

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