Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3979

Support LinqExtensions.Inject in LINQ3

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.14.1
    • Affects Version/s: 2.14.0
    • Component/s: LINQ3

      Hello,

      I wanted to test Linq v3 and after changing LingProvider option without any code changes I get this error:

      System.InvalidOperationException: 'The LinqExtensions.Inject method is only intended to be used in LINQ Where clauses.'

      Code:

      collection.AsQueryable(new AggregateOptions { AllowDiskUse = true }).Where(x => filter.Inject())

      Thanks!

      Best regards

      Dimitri

       

       

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            dimitri.kroo@baramundi.com Dimitri Kroo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: