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

V2.21.0 Projection issue

    • Type: Icon: Question Question
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • 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

      We have a customer running into a projection issue when using the C# driver v2.21.0.

      He's able to workaround this issue either:

      • LinqProvider.V2
      • or LinqProvider.V3 with driver V2.20

      Please provide the version of the driver.

      v2.21.0

      How to Reproduce

      The following projection will return a NULL value using LinqProvider.V3.

      Builders<ClientAccountModel>.Projection.Expression(clientAccount => clientAccount.Bank.Bsb)

      A full working example is attached (MDB_Projection_Bug.txt).
      Two different outputs:

      • V3 Result.jpg: return NULL
      • V2 Result.jpg: return a result

        1. MDB_Projection_Bug.txt
          3 kB
          Pierre Depretz
        2. V2 Result.jpg
          22 kB
          Pierre Depretz
        3. V3 Result.jpg
          22 kB
          Pierre Depretz

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            pierre.depretz@mongodb.com Pierre Depretz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: