© Philip Japikse, Kevin Grossnicklaus, Ben Dewey 2020
P. Japikse et al.Building Web Applications with .NET Core 2.1 and JavaScripthttps://doi.org/10.1007/978-1-4842-5352-6_4

4. Complete the Data Access Layer

Philip Japikse1 , Kevin Grossnicklaus2 and Ben Dewey3
(1)
West Chester, OH, USA
(2)
Ellisville, MO, USA
(3)
Charleston, SC, USA
 

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 ...

Get Building Web Applications with .NET Core 2.1 and JavaScript: Leveraging Modern JavaScript Frameworks 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.