1. Trang chủ
  2. » Giáo Dục - Đào Tạo

6 asp dotnet core api building first m6 slides kho tài liệu training

14 48 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 14
Dung lượng 206,62 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

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 2

This bullet list

with

animations

Introducing the Repository Pattern

Reading, Creating, Updating and Deleting Resources via Entity Framework Core

Using AutoMapper

Coming Up

Trang 3

No Repository Pattern

Code duplication More error-prone code Harder to test the consuming class

Repository Pattern

Introducing the Repository Pattern

Trang 4

An abstraction that reduces complexity and aims to

make the code, safe for the repository implementation, persistence ignorant

The Repository Pattern

Trang 5

No 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 6

This bullet list

with

animations

Introducing the Repository Pattern

Trang 7

This bullet list

with

animations

Returning Data from the Repository when Requesting Resources

Trang 8

This bullet list

with

animations

Using AutoMapper to map Between Entities and DTOs

Trang 9

This bullet list

with

animations

Creating a Resource

Trang 10

This bullet list

with

animations

Updating a Resource

Trang 11

This bullet list

with

animations

Partially Updating a Resource

Trang 12

This bullet list

with

animations

Deleting a Resource

Trang 13

This 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 14

You’re ready to be AWESOME

Ngày đăng: 17/11/2019, 08:27

TỪ KHÓA LIÊN QUAN