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

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

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

      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@mongodb.com Robert Stam
            Reporter:
            zippy1981 Justin Dearing
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: