[CSHARP-4376] Add LINQ3 support for untyped CreateQuery Created: 21/Oct/22 Updated: 23/Mar/23 Resolved: 26/Oct/22 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | LINQ3 |
| Affects Version/s: | 2.18.0 |
| Fix Version/s: | 2.19.0 |
| Type: | Improvement | Priority: | Unknown |
| Reporter: | Alistair Steele | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
LINQ2 supported creating queries from expression trees via the MongoQueryProviderImpl.CreateQuery (non-generic) method. This mechanism is used by the Dynamic LINQ (it first converts a textual query into an expression tree and the passes it to CreateQuery). LINQ3 doesn't provide an implementation of this method (MongoQueryProvider.CreateQuery just throws). It should be simple to re-add the support for LINQ3 as LINQ2 simply used reflection to create the fully typed query object.
I'm unsure if this was deliberately omitted from v3, apologies if that's the case. Many thanks |
| Comments |
| Comment by Githook User [ 26/Oct/22 ] |
|
Author: {'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}Message: |
| Comment by Dmitry Lukyanov (Inactive) [ 21/Oct/22 ] |
|
Thank you alistair.steele@trapdoorlabs.uk for your report. We will consider this work and will back to you |