Working with POCOs, LINQ, and a NoSQL Document Database

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 ...

Get Guide to NoSQL with Azure Cosmos DB now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.