|
@@ -24,6 +24,7 @@ using System.Text.Json;
|
|
|
using System.Threading;
|
|
|
using TEAMModelOS.SDK.Context.Exception;
|
|
|
using TEAMModelOS.SDK.DI;
|
|
|
+using Azure.Cosmos.Serialization;
|
|
|
|
|
|
namespace TEAMModelOS.SDK.DI
|
|
|
{
|
|
@@ -59,7 +60,7 @@ namespace TEAMModelOS.SDK.DI
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
- var cm = CosmosClients.GetOrAdd(name, x => new CosmosClient(_optionsMonitor.Get(name).ConnectionString, new CosmosClientOptions() { ApplicationRegion = region }));
|
|
|
+ var cm = CosmosClients.GetOrAdd(name, x => new CosmosClient(_optionsMonitor.Get(name).ConnectionString, new CosmosClientOptions() { ApplicationRegion = region, SerializerOptions = new CosmosSerializationOptions() { PropertyNamingPolicy = CosmosPropertyNamingPolicy.CamelCase } }));
|
|
|
return cm;
|
|
|
}
|
|
|
catch (Exception e)
|