I used :
CouchbaseClientExtensions.JsonSerializerSettings.ContractResolver = new PascalCasePropertyNamesContractResolver();
It serialized the json properties with pascalcase and stored them as i wanted in couchbase.
New thing that happens now is that i get “Error converting value to type ‘System.Int64’. Path ‘id’…”
My Id is a long type fields that its name is also pascalcase as the other properties.
Can you explain this error?
By the way, when i use [JsonProperty(“id”)] attribute above the “Id” property, it works, but i want to understand why it happens and if there is a good way i can solve it without using JsonProperty attribute.