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

BsonDefaultValue attributes in properties is not working

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      I tried added the BsonDefaultValue in datetime property, when I pass the that value it should take the value if it is null then it should take the default value of current datetime. It is not working for datetime even it's not working for string value also. Please help me on this.

        1. BusinessModel.JPG
          BusinessModel.JPG
          44 kB
        2. DataLayer.JPG
          DataLayer.JPG
          37 kB

            Assignee:
            wan.bachtiar@mongodb.com Wan Bachtiar
            Reporter:
            lawce Lawrence
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: