I am using Json.Net to decorate my document properties.
public class MyDocumentType : Document
{
[JsonProperty]
[JsonConverter(typeof(StringEnumConverter))]
public MyEnumType EnumProertyName{ get; set; }
[JsonProperty]
public uint MyIntPrperty{ get; set; }
}
When I update the document in cosmos db, it is not getting updated to string value. It is always defaulting to the default enum value. How do I make it serialize and deserialize to string value. I don't want to use numbers as if I add a new enum value then things will break.