Learning code-first development and migrations
In this section, we are going to explore EF Core code-first development by building a simple ASP.NET Core Web API application to perform basic database operations.
Before we get our hands dirty with coding, let's first review what ASP.NET Core Web API is.
Reviewing ASP.NET Core Web API
There are many ways to enable various systems to access data from one application to another. A few examples of communications are HTTP-based APIs, web services, WCF servers, event-based communication, message queues, and many others. Nowadays, HTTP-based APIs are the most commonly used means of communication between applications. There are a few ways to use HTTP as the transport protocol for building APIs: OpenAPI, Remote Procedure Call (gRPC), and REpresentational State Transfer (REST).
ASP.NET Core Web API is an HTTP-based framework for building RESTful APIs that allow other applications on different platforms to consume and pass data...