[BsonRepresentation(BsonType.String)] does not work as expected when decorating Guids

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 1.0
    • Affects Version/s: 0.9
    • Component/s: None
    • None
    • Environment:
      Windows
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If I have an object with a property:

      [BsonRepresentation(BsonType.String)]
      public Guid photoId

      { get; set; }

      Callign ToJson() on an that object leads to the folling being generated:
      "photoId": "{}"

              Assignee:
              Robert Stam
              Reporter:
              Justin Dearing
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: