Unable to specify member map for generic base class.

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.2
    • Component/s: BSON, Serialization
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If you have a generic base class in a contracts library that doesn't have a dependency on Mongo.

      public Thing<T>
      {
        public T Value { get; set; }
        public Dictionary<string, object> Properties { get; set; }
      }
      

      Using the current BsonClassMap there does not appear to be a way to indicate that Properties should be used as the ExtraElements attribute without checking that the type has been mapped on each call and creating a mapping then.

              Assignee:
              James Kovacs
              Reporter:
              Benjamin Randall
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: