5 CRUD operations

This chapter covers

  • Performing SELECT, INSERT, UPDATE, and DELETE queries with EF Core
  • Handling requests using the HTTP GET, POST, PUT, and DELETE methods
  • Implementing paging, sorting, and filtering using EF Core
  • Using data-transfer objects (DTOs) to exchange JavaScript Object Notation (JSON) data with the client

In chapter 4, we dedicated ourselves to the installation, setup, and configuration of all the prerequisites for interacting with a database management system (DBMS), and we learned the means, techniques, and reasons to do that. Now that we have a database context and an object-relational mapper (ORM) up and running, we’re ready to perform the typical data-related tasks: create, read, update, and delete (CRUD) operations, ...

Get Building Web APIs with ASP.NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.