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

LINQ Provider V3 Has Different Behavior?

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: 2.19.0
    • Component/s: None

      Summary

      Upgrading to LINQ provider 3 caused unexpected behavior in our application. Here's a query that returns results in v2, but returns nothing on v3: 

      query.Where(x => 
          x.ClientName.ToLower().Contains(dto.Client) || 
          x.ClientEmail.ToLower().Contains(dto.Client) ||  
          x.AdditionalClients.Any(c => 
              c.ClientName.ToLower().Contains(dto.Client) || 
              c.ClientEmail.ToLower().Contains(dto.Client)));
      

      Has the behavior of Contains changed intentionally?

      Driver: 2.19

      Server: Atlas 5.0.15

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            cassio@intakeq.com Cassio Mosqueira
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: