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

Filtering on BsonDiscriminator and other property yields no result

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: 2.25.0
    • Component/s: None
    • None
    • Dotnet Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Summary

      Using a Linq Where query on the BsonDiscriminator property and another property yields no result. Filtering on each property separately works fine.

      Driver version 2.25 / MongoDB 7.0.8

      How to Reproduce

      Restore dump from test project and run.

      First two filter querys work but third query doesn't work as expected. 

        1. Test_Project.7z
          82 kB
          Janis Zinn

            Assignee:
            boris.dogadov@mongodb.com Boris Dogadov
            Reporter:
            janis.zinn@baramundi.com Janis Zinn
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: