BsonElement attribute is ignored on Id properties

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Works as Designed
    • Priority: Critical - P2
    • None
    • Affects Version/s: 3.9.0
    • Component/s: Serialization
    • 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?
    • None
    • None
    • None
    • None
    • None
    • None

      After changed/fixed the common behaviour for managing Id Member Convention, the result is that all field that was previous named "id" , and marked as [BsonELement("id)] but managed as normal string with custom content, now will be transformed to null value!!

      I understand this is the right way MongoDB choose to manage behavior about ID Member Convention, but i think will be very important to highlight this change at least in release note. Users need to know that their data will be changed or deleted.

            Assignee:
            Ferdinando Papale
            Reporter:
            Amedeo Bruni
            None
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: