How kkcire/storage-system works
Storage System is a console-based inventory manager for brands and products. Users navigate the console menus to register, update, delete, search, and list records; product operations also cover stock adjustments and brand changes. Services apply use-case checks and invoke repository contracts, while domain entities enforce business rules and EF Core repositories persist through SQL Server. The README documents database constraints and automatic startup migrations. The map reflects the shown wiring and calls; repository implementation details are supported by the source index, not quoted excerpts.
Main entry points: Program.cs Startup Wiring · ProductService.cs Product Service · StorageContext.cs EF Context · Menu.cs Main Menu
Components 18
Console UI
- Startup Wiring
src/StorageSystem.Console/Program.cs - Main Menu
src/StorageSystem.Console/UI/Menu.cs - Brand Menu
src/StorageSystem.Console/UI/Brand/BrandMenu.cs - Product Menu
src/StorageSystem.Console/UI/Product/ProductMenu.cs - Product Updates
src/StorageSystem.Console/UI/Product/UpdateMenu.cs
Application
- Brand Service
src/StorageSystem.Application/Services/BrandService.cs - Product Service
src/StorageSystem.Application/Services/ProductService.cs - Brand Contract
src/StorageSystem.Application/Repository/IBrandRepository.cs - Product Contract
src/StorageSystem.Application/Repository/IProductRepository.cs
Domain Model
- Brand Entity
src/StorageSystem.Domain/Entities/Brand.cs - Product Entity
src/StorageSystem.Domain/Entities/Product.cs - Validation Guards
src/StorageSystem.Domain/Guards/GuardClause.cs - Domain Error
src/StorageSystem.Domain/Exceptions/DomainException.cs
Persistence
- Brand Repository
src/StorageSystem.Infrastructure/Repository/BrandRepository.cs - Product Repository
src/StorageSystem.Infrastructure/Repository/ProductRepository.cs - EF Context
src/StorageSystem.Infrastructure/Data/StorageContext.cs
Other components
- Operator
- SQL Server
Connections 29
- Operator → Main Menu: uses
README.md - Startup Wiring → EF Context: migrates
src/StorageSystem.Console/Program.cs - Startup Wiring → Brand Repository: constructs
src/StorageSystem.Console/Program.cs - Startup Wiring → Product Repository: constructs
src/StorageSystem.Console/Program.cs - Startup Wiring → Brand Service: constructs
src/StorageSystem.Console/Program.cs - Startup Wiring → Product Service: constructs
src/StorageSystem.Console/Program.cs - Startup Wiring → Brand Menu: constructs
src/StorageSystem.Console/Program.cs - Startup Wiring → Product Menu: constructs
src/StorageSystem.Console/Program.cs - Startup Wiring → Product Updates: constructs
src/StorageSystem.Console/Program.cs - Startup Wiring → Main Menu: runs
src/StorageSystem.Console/Program.cs - Main Menu → Brand Menu: dispatches
src/StorageSystem.Console/UI/Menu.cs - Main Menu → Product Menu: dispatches
src/StorageSystem.Console/UI/Menu.cs - Product Menu → Product Updates: opens
src/StorageSystem.Console/UI/Product/ProductMenu.cs - Brand Menu → Brand Service: calls
src/StorageSystem.Console/UI/Brand/BrandMenu.cs - Product Menu → Product Service: calls
src/StorageSystem.Console/UI/Product/ProductMenu.cs - Product Updates → Product Service: calls
src/StorageSystem.Console/UI/Product/UpdateMenu.cs - Brand Service → Brand Contract: uses
src/StorageSystem.Application/Services/BrandService.cs - Product Service → Product Contract: uses
src/StorageSystem.Application/Services/ProductService.cs - Brand Service → Brand Entity: creates and mutates
src/StorageSystem.Application/Services/BrandService.cs - Product Service → Product Entity: creates and mutates
src/StorageSystem.Application/Services/ProductService.cs - Product Service → Brand Entity: checks brand
src/StorageSystem.Application/Services/ProductService.cs - Brand Entity → Validation Guards: validates with
src/StorageSystem.Domain/Entities/Brand.cs - Product Entity → Validation Guards: validates with
src/StorageSystem.Domain/Entities/Product.cs - Product Entity → Domain Error: throws
src/StorageSystem.Domain/Entities/Product.cs - Brand Repository → EF Context: queries and saves
src/StorageSystem.Infrastructure/Repository/BrandRepository.cs - Product Repository → EF Context: queries and saves
src/StorageSystem.Infrastructure/Repository/ProductRepository.cs - EF Context → Brand Entity: maps
src/StorageSystem.Infrastructure/Data/StorageContext.cs - EF Context → Product Entity: maps
src/StorageSystem.Infrastructure/Data/StorageContext.cs - EF Context → SQL Server: persists through
README.md