How ndat99/pbl3_coffeehome works
Project type and purpose
• This is a desktop, full-stack “CoffeeHome” management application built on .NET WinForms with a classic 4-tier layered architecture.
• It supports multiple user roles (Admin, Barista, Cashier, Login) and manages menu items, inventory, orders, revenues, discounts, and user accounts via an underlying SQL database (accessed through Entity Framework).
File structure
• Top-level solution (PBL3_CoffeeHome.sln) and project folder (PBL3_CoffeeHome).
• Layers:
• GUI (WinForms UIs organized by role: Admin, Barista, Cashier, Login)
• BLL (Business Logic Layer): services such as OrderBLL, InventoryBLL, RevenueBLL, UserBLL, etc.
• DAL (Data Access Layer): CoffeeDbContext.cs plus repository classes (*DAL.cs) implementing CRUD via EF.
• DTO (Data Transfer Objects): simple POCO models for entities and ViewModels.
• Config and Properties: App.config, EF connection strings, resources.
Key insights (README is minimal)
• No external microservices or cloud components. All business logic is on the client-side application.
• Uses repository pattern over EF for data operations.
Detail
• BLL and DAL service class or group services logically
• Explicitly show the EF DbContext as the point of mapping to the SQL database
• Flow of DTO objects through the layers
• Every tier and its responsibilities are clearly annotated, so a new engineer can instantly grasp how UI events propagate down to database calls and back.