Architecture · Project 1
Chiều phụ thuộc giữa các project của Inventory System
Chiều phụ thuộc của Inventory System
Console gọi Application, Application phụ thuộc Domain, Infrastructure cài đặt interface của Domain và đọc ghi file JSON; Console chỉ tham chiếu Infrastructure để đăng ký DI, còn project Api ở bài bonus dùng lại Application.
GỌI
PHỤ THUỘC
IMPLEMENT
ĐĂNG KÝ DI
ĐỌC / GHI
GỌI
Console
Program.cs · Menus
Application
InventoryService
DTOs
Domain
Entities · Interfaces
không phụ thuộc ai
Infrastructure
JsonProductRepository
JsonStockRepository
File JSON
Data/*.json
Api
Minimal API · bonus
CHÚ GIẢI
Lõi, không tham chiếu project nào
Tham chiếu chính
Cài đặt, đăng ký DI, phần bonus
© tiennhm