In this chapter, we will continue working with the .NET Core SDK, but this time we will work with POCOs and LINQ queries. We will take advantage of the strongly typed features of C# and the functional programming features that LINQ provides to work with Cosmos DB. We will improve the application we started in the previous chapter and we will understand the advantages of working with POCOs combined with LINQ.
In this chapter, we will do the following:
- Create models and customize serialization
- Insert POCOs
- Calculate a cross-partition aggregate with an asynchronous LINQ query
- Read and update an existing document with a POCO
- Query documents in multiple partitions with LINQ
- Write LINQ queries ...