The previous chapter covered building the StoreContext class, C# entities, the database, tables, views, a stored procedure, and the user-defined function, all using EF Core Migrations. This chapter finishes the data access layer for the SpyStore application.
The first section covers using Entity Framework Core to create, read, update, and delete database records.
Repositories are used to reduce (or eliminate) duplicate code ...