How ronaldotavcano/vendinha works
Vendinha is a customer and debt-management application with a Windows Forms desktop interface and a separate console entry point. The main desktop workflow starts at the home form, opens customer or debt forms, and delegates operations to services that apply validation and persistence rules through the EF Core context to PostgreSQL. Customer listing also supports search, paging, debt totals, payment, and guarded deletion. The README documents these capabilities; the graph follows shown calls and documented database use, without assuming unshown implementation details.
Main entry points: VendinhaDbContext.cs EF database context · ClienteService.cs Customer operations · DividaService.cs Debt operations · Form1.cs Home form
Components 12
User interfaces
- Desktop startup
Vendinha.Desktop/Program.cs - Home form
Vendinha.Desktop/Form1.cs - Create customer
Vendinha.Desktop/screens/FormCriarCliente.cs - Create debt
Vendinha.Desktop/screens/FormCriarDivida.cs - Customer listing
Vendinha.Desktop/screens/FormListagemClientes.cs - Console interface
Vendinha.Core/Program.cs
Business services
- Customer operations
Vendinha.Core/Services/ClienteService.cs - Debt operations
Vendinha.Core/Services/DividaService.cs
Domain model
- Customer entity
Vendinha.Core/Models/Cliente.cs - Debt entity
Vendinha.Core/Models/Divida.cs
Persistence
- EF database context
Vendinha.Core/Contexts/VendinhaDbContext.cs
Other components
- PostgreSQL
Connections 17
- Desktop startup → Home form: launches
Vendinha.Desktop/Program.cs - Home form → Customer listing: opens
Vendinha.Desktop/Form1.cs - Home form → Create customer: opens
Vendinha.Desktop/Form1.cs - Home form → Create debt: opens
Vendinha.Desktop/Form1.cs - Create customer → Customer operations: creates via
Vendinha.Desktop/screens/FormCriarCliente.cs - Create debt → Debt operations: creates via
Vendinha.Desktop/screens/FormCriarDivida.cs - Customer listing → Customer operations: lists, searches
Vendinha.Desktop/screens/FormListagemClientes.cs - Customer listing → Debt operations: pays, totals
Vendinha.Desktop/screens/FormListagemClientes.cs - Console interface → Customer operations: invokes
Vendinha.Core/Program.cs - Console interface → Debt operations: invokes
Vendinha.Core/Program.cs - Customer operations → EF database context: queries, saves
Vendinha.Core/Services/ClienteService.cs - Debt operations → EF database context: queries, saves
Vendinha.Core/Services/DividaService.cs - Customer operations → Customer entity: validates, manages
Vendinha.Core/Services/ClienteService.cs - Debt operations → Debt entity: validates, manages
Vendinha.Core/Services/DividaService.cs - EF database context → Customer entity: maps
Vendinha.Core/Contexts/VendinhaDbContext.cs - EF database context → Debt entity: maps
Vendinha.Core/Contexts/VendinhaDbContext.cs - EF database context → PostgreSQL: connects
Vendinha.Core/Contexts/VendinhaDbContext.cs