3 Changing the database content

This chapter covers

  • Creating a new row in a database table
  • Updating existing rows in a database table for two types of applications
  • Updating entities with one-to-one, one-to-many, and many-to-many relationships
  • Deleting single entities, and entities with relationships, from a database

Chapter 2 covered querying a database. This chapter moves on to changing the content of a database. Changing data has three distinct parts: creating new rows in a database table, updating existing rows in a database table, and deleting rows in a database table, which I cover in that order. Create, update, and delete, along with read (which is query in EF Core terms) are database terms for what’s happening, and the foursome ...

Get Entity Framework Core in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.