Summary
In this chapter, we learned how to take advantage of strongly typed code in C#, LINQ, and Cosmos DB. First, we created models and other necessary types, and we customized the default serialization provided by Json.NET to match our specific needs.
We worked with the main classes of the Cosmos DB SDK for .NET Core and we built a second version of a .NET Core 2 application, which interacts with Cosmos DB by using POCOs instead of dynamic objects. We wrote code to retrieve instances of a specific class with asynchronous LINQ queries.
We wrote code that persisted strongly typed objects into documents that represent competitions. We read and updated existing documents with POCOs and we composed and executed single-partition and cross-partition queries with LINQ.
Now that we have a very clear understanding of how to use of POCOs and LINQ with the .NET Core SDK to perform create, read, and update operations with Cosmos DB, we will learn how to optimize the resource units consumed, work with...