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

BsonDefaultValue attributes in properties is not working

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: