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

BsonClassMap.AutoMap() does not incorporate inheritance.

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.4
    • 1.3.1
    • None
    • Mono 2.10.8

    Description

      Would you please explain why BsonClassMap.AutoMap() does not map inherited members? What might the possible side effects be of changing this in the source, if any.

      The changes I am considering are as follows:

      • Removing any instances of BindingFlags.DeclaredOnly, namely in Bson => Serialization => Conventions => MemberFinderConventions and Bson => Serialization => BsonClassMap
      • Removing check "if (memberInfo.DeclaringType != _classType)" and ensuing Exception in Bson => Serialization => BsonClassMap

      Thanks for any help you can provide.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            rposky Robert Poskevich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: