-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Summary
`System.Linq.Dynamic.Core.DynamicQueryableExtensions.OrderBy` used to work in Linq2, but throws an exception in Linq3
C# Driver Version: V2.18
MongoDB Version: 4.4.6 Community
How to Reproduce
```csharp
//using System.Linq.Dynamic.Core;
var q = collection.AsQueryable();
var ordered = (IOrderedMongoQueryable<PocoClass>)q.OrderBy("Name");
```
in V2, this works successfully.
in V3, `OrderBy` throws an exception:
```
Message:
System.NotImplementedException : The method or operation is not implemented.
Stack Trace:
MongoQueryProvider`1.CreateQuery(Expression expression)
DynamicQueryableExtensions.InternalOrderBy(IQueryable source, ParsingConfig config, String ordering, IComparer comparer, Object[] args)
DynamicQueryableExtensions.OrderBy(IQueryable source, ParsingConfig config, String ordering, Object[] args)
DynamicQueryableExtensions.OrderBy[TSource](IQueryable`1 source, ParsingConfig config, String ordering, Object[] args)
DynamicQueryableExtensions.OrderBy[TSource](IQueryable`1 source, String ordering, Object[] args)
```
- duplicates
-
CSHARP-4376 Add LINQ3 support for untyped CreateQuery
- Closed