Professional Documents
Culture Documents
Repository Pattern
Repository Pattern
Repository Pattern nằm giữa DataAccess và Business Logic, là lớp trung gian giữa truy cập dữ liệu và xử lý logic.
Với repository pattern, vì nó nằm giữa Controller và Model nên cách sử dụng sẽ là
Unit of Work.
The Unit of Work class coordinates the work of multiple repositories by creating a single database context class
shared by all of them.