Summary
In this chapter, we learned about various persistent options that are available in .NET 5, from APIs to work with files and directories to databases such as Microsoft SQL Server and Azure Cosmos DB.
We also learned about ORMs, their importance, and how EF Core can be used to build a persistence layer while working with Microsoft SQL Server. Along the way, we built a data access layer for our e-commerce application using the Azure Cosmos DB SDK. Some of the key takeaways are the design decisions we took between SQL versus NoSQL and how we can abstract a data layer with application logic and a UI layer that will help you to build scalable enterprise applications.
In the next chapter, we will look at the foundation of RESTful APIs and the internals of the ASP.NET Core 5 Web API, and further build various RESTful services for e-commerce applications.