This bullet list with animations Introducing the Repository Pattern Reading, Creating, Updating and Deleting Resources via Entity Framework Core Using AutoMapper Coming Up... No Reposit
Trang 1@KevinDockx https://www.kevindockx.com
ARCHITECT
KEVIN DOCKX
Using Entity Framework Core in our Controllers
Trang 2This bullet list
with
animations
Introducing the Repository Pattern
Reading, Creating, Updating and Deleting Resources via Entity Framework Core
Using AutoMapper
Coming Up
Trang 3No Repository Pattern
Code duplication More error-prone code Harder to test the consuming class
Repository Pattern
Introducing the Repository Pattern
Trang 4An abstraction that reduces complexity and aims to
make the code, safe for the repository implementation, persistence ignorant
The Repository Pattern
Trang 5No Repository Pattern
Code duplication More error-prone code Harder to test the consuming class
Repository Pattern
No duplication Less error-prone code Better testability of the consuming class
Persistence ignorant: switching out the persistence technology is not the main purpose Choosing the best one for each repository method is.
Introducing the Repository Pattern
Trang 6This bullet list
with
animations
Introducing the Repository Pattern
Trang 7This bullet list
with
animations
Returning Data from the Repository when Requesting Resources
Trang 8This bullet list
with
animations
Using AutoMapper to map Between Entities and DTOs
Trang 9This bullet list
with
animations
Creating a Resource
Trang 10This bullet list
with
animations
Updating a Resource
Trang 11This bullet list
with
animations
Partially Updating a Resource
Trang 12This bullet list
with
animations
Deleting a Resource
Trang 13This bullet list
with
animations
The repository pattern is an abstraction that reduces complexity and aims to
make the code, safe for the repository implementation, persistence ignorant
Using AutoMapper greatly reduces error-prone mapping code
Summary
Trang 14You’re ready to be AWESOME