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

Add a new constructor that take "baseClassMap" in BsonClassMap<TClass>

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.1
    • Affects Version/s: 2.2
    • Component/s: BSON, Serialization
    • None
    • Fully Compatible

      I need to set a custom BaseClassMap creating a new ClassMap, but i need also to initialize a generic instance. BaseClassMap proeprty is accessibile only in get from BsonClassMap, but I'd like to set that value when I initialize a new BsonClassMap<TClass>.
      At now I'm injecting a value with Reflection, but it's not a safe solution.

            Assignee:
            Unassigned Unassigned
            Reporter:
            tmm360 Mirko Da Corte
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: