Chapter 7: APIs and Data Access
In real-world scenarios, whether it's a mobile app, desktop, service, or web apps, they heavily rely on Application Programming Interfaces (APIs) to interact with systems to submit or fetch data. APIs typically act as a gateway between client applications and a database to perform any data operations between systems. Often, APIs provide instructions and a specific format to clients on how to interact with the system to perform data transactions. Thus, APIs and data access work together to achieve two main goals: serving and taking data.
Here is the list of the main topics that we'll go through in the chapter:
- Understanding ORM and Entity Framework Core
- Learning database-first development
- Learning code-first development and migrations
In this chapter, we are going to learn about the different approaches to working with a real database in Entity Framework (EF) Core. We will take a look at how to use EF Core with an...