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

Investigate Interface Usage in Bson library

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.0
    • Affects Version/s: 1.4.2
    • Component/s: None
    • None

      BsonClassMap.RegisterClassMap<IInterface> will not work correctly, even though there might be some validity to the need. Let's investigate this as well as other aspects of using interfaces as domain entities.

      [Edit 2015-04-08]

      Instead of calling BsonClassMap.RegisterClassMap<IInterface>, what is actually needed is to call BsonSerializer.RegisterSerializer<IInterface>(...). See comment below created on 2015-04-08.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            craig.wilson@mongodb.com Craig Wilson
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: