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

Support LinqExtensions.Inject in LINQ3

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 2.14.1
    • 2.14.0
    • LINQ3

    Description

      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

       

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: