liveBook · Manning

SQL

As explained in Building Web APIs with ASP.NET Core

SQL is a standardized language for defining, querying, manipulating, and controlling data in relational database systems.

SQL (Structured Query Language) is conventionally associated with relational database systems. It works with data arranged in tables of rows and columns, where each table represents a record type such as Users, BoardGames, or Comments. section 4.1.1

SQL shapes both the database design and the operations used by the board-game API:

  • Models records with fixed-schema tables whose columns remain consistent across records. section 4.1.1
  • Represents relationships between records through primary keys and references stored in related tables. section 4.1.1
  • Supports the CRUD operations represented by INSERT, SELECT, UPDATE, and DELETE queries. section 5.0
  • Fits data that has a known, consistent structure and does not require near-term horizontal scaling. section 4.1.2

Choosing SQL for board-game data

Suppose a CSV file contains board-game IDs, names, publication years, and related fields. Importing it into a relational DBMS provides a structured store for the web API. The API can then use EF Core’s ApplicationDbContext and LINQ operations to perform reads and writes, while EF Core handles the database interaction without requiring application code to write SQL directly. section 4.1.2 section 5.0

Figure 4.1 MyBGList database schema diagram for a table-oriented SQL database
04-01

Use the relational schema diagram to inspect how board-game entities are organized as tables and connected through relationships. section 4.1.1

How Building Web APIs with ASP.NET Core covers it

How deep it goes
Defines tables, schemas, keys, and CRUD query roles, while deferring direct SQL practice to EF Core and LINQ.
Examples
Uses board-game tables, CSV imports, schema diagrams, and INSERT, SELECT, UPDATE, and DELETE operations.
What it assumes
Assumes basic data-manipulation language knowledge but requires no specific SQL knowledge when using EF Core and LINQ.
What you can do after
Apply it via EF Core and LINQ to implement CRUD interactions between a web API and a relational DBMS.
How it connects
Connects relational databases, primary keys, Entity Framework Core, LINQ, CRUD operations, and NoSQL databases.

Also explained in

Compare how 25 books explain SQL →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Web APIs with ASP.NET Core. The section links point to the parts of the book it draws on.