title: Azure Cosmos DB (EF/Core) - Camel Case Property Names
body: <p>I have a .NET Core 3.1 API Project which has  Cosmos DB storage being handled via Entity Framework (Microsoft.EntityFrameworkCore.Cosmos - v3.1.5).</p>
  <p>I have a database model:</p>
  <pre><code>[JsonObject(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
  public class BikeRental
  {
      [JsonProperty(PropertyName = &quot;id&quot;)]
      [Key]
      public Guid Id { get; set; }
  
      [JsonProperty(PropertyName = &quot;bikeId&quot;)]
      public string BikeId { get; set; }
  
      [JsonProperty(PropertyName = &quot;shopId&quot;)]
      public string ShopId { get; set; }
  }
  </code></pre>
  <p>Upon saving to the CosmosDB database, the columns are being serialised using the class property names, ignoring the 'PropertyName' attribute. For example, if 'bikeId' is changed to 'testBikeId' it is written as 'BikeId' still.</p>
  <pre><code>{
      &quot;Id&quot;: &quot;192dfdf4-54cb-4290-a478-7035518983ca&quot;,
      &quot;BikeId&quot;: &quot;eb65b93b-17d3-4829-9729-d48c029211fe2&quot;,
      &quot;ShopId&quot;: &quot;636c08c4-600d-458a-98b7-8d312b8c18d2&quot;,
  
      &quot;_rid&quot;: &quot;2QZIAMVYbVQBAAAAAAAAAA==&quot;,
      &quot;_self&quot;: &quot;dbs/2QZIAA==/colls/2QZIAMVYbVQ=/docs/2QZIAMVYbVQBAAAAAAAAAA==/&quot;,
      &quot;_etag&quot;: &quot;\&quot;00000000-0000-0000-4627-f721b0e701d6\&quot;&quot;,
      &quot;_attachments&quot;: &quot;attachments/&quot;,
      &quot;_ts&quot;: 1592564051
  }
  </code></pre>
  <p>Any help or suggestions on how to resolve this would be much appreciated!</p>
  <p>Edit:
  The saving of the object to Cosmos is performed via:</p>
  <pre><code>var response = _context.BikeRentals.Add(obj)
  _context.SaveChanges();
  </code></pre>