Make discriminators completely independent from BsonClassMap

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: 3.4.0
    • Component/s: Serialization
    • 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

      At the moment our implementation of discriminators is strictly connected to the use of BsonClassMaps. For example, our Scalar/Hierarchical discriminator conventions only work with BsonClassMap (`GetDiscriminator` relies on class map being registered). 

      We should try to make discriminator conventions completely independent from BsonClassMap so that they can be used with different kind of serializers eventually. 

            Assignee:
            Unassigned
            Reporter:
            Ferdinando Papale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: