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

Globally Set [BsonIgnoreExtraElements]

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Configuration
    • Labels:
    • Fully Compatible

      I'm new to MongoDB and the CSharp driver and I'm looking for a way to set [BsonIgnoreExtraElements] by default and add the ability for the developer to reverse the default.

      • Set BsonIgnoreExtraElements Globally.
      • New attribute BsonIncludeAllElements (Or Similar) to throw exception when attribute isn't found - should the developer need this for certain models.

      Would this be something the team would consider? Happy to submit the pull request.

            Assignee:
            Unassigned Unassigned
            Reporter:
            Pino Liam Bateman [X]
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: