V2.21.0 Projection issue

XMLWordPrintableJSON

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

      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
        2. V2 Result.jpg
          V2 Result.jpg
          22 kB
        3. V3 Result.jpg
          V3 Result.jpg
          22 kB

              Assignee:
              Robert Stam
              Reporter:
              Pierre Depretz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: