ealsur / ondotnet-cosmosdb

Cosmos DB content for OnDotNet on Channel9
https://channel9.msdn.com/Shows/On-NET
MIT License
16 stars 5 forks source link

Using SDK with LINQ and property names #2

Closed nhwilly closed 2 months ago

nhwilly commented 1 year ago

What a great addition. This is what allowed me to use System.Text.Json in my projects. Thank you.

I did notice that I have to use normal casing (not Camel Case) for my property names to work with LINQ queries.

That's not ideal, but I suspect it's because the internals of Cosmos are still Newtonsoft dependent.

Anyway, thanks for this.

ealsur commented 1 year ago

The code in this repo/example is not updated, maybe https://github.com/Azure/azure-cosmos-dotnet-v3/blob/master/Microsoft.Azure.Cosmos.Samples/Usage/SystemTextJson/CosmosSystemTextJsonSerializer.cs might be better

nhwilly commented 1 year ago

Thanks for the quick response. I'll give it a shot.