Case study · 2025
Book&Go
Library lending system
A desktop application for book loans, returns, penalties and stock replenishment. I developed it individually as the final project for my Systems Analyst degree.
- C#
- .NET Framework 4.8.1
- WinForms
- SQL Server
- UML
- Role
- Analysis, design, development and documentation of the complete project
- Scope
- 2 business processes · 5 user roles
- Interface
- WinForms on .NET Framework 4.8.1, with language switching without restarting
- Database
- SQL Server 2022, with check digits, event log and backup
Context
The problem the project addresses.
Book&Go records who borrows each copy, when they return it and its condition. It also handles penalties for late or damaged returns and replenishment when a title runs low.
This was my third-year final project for the Systems Analyst degree. Its scope covered two processes: loans and returns, and stock and replenishment, including error cases.
I developed the application in C# with WinForms on .NET Framework 4.8.1 and SQL Server 2022. The delivery includes the data model, layered architecture, technical documentation and user manuals.
Scope
The two processes the system covers and the roles that run them.
Processes
Loans and returns
Customer registration, availability checks, deposit collection in cash or by card, return registration with the condition of each copy, and penalties for late or damaged returns.
Stock and replenishment
Stock by status (available, on loan, damaged, missing), automatic purchase orders when stock reaches the minimum, supplier records and registration of new copies on delivery.
Roles
Librarian
Loans, returns, penalties and customer registration.
Replenishment manager
Stock queries, purchase orders and registering new copies.
Stock clerk
Checking invoices and orders, and registering incoming deliveries.
Administrator
Users, profiles, families and permissions.
End user
Sign in and change password.
Architecture
Five projects separating the responsibilities of the code.
-
Presentation
GUIWinForms forms grouped by process: loans, replenishment, master data, reports and administration.
-
Business
BLLLoan, penalty, replenishment, check-digit and event-log rules.
-
Entities
BEEntities that represent business data and are passed between layers.
-
Data
DALSQL Server access through Microsoft.Data.SqlClient over a shared base class.
-
Services
Shared session, language, encryption and event functions, along with the design patterns used.
SQL Server queries are kept in the data layer. Entities carry information between layers, and the services project holds shared session management, language, encryption and event functions.
Decisions
Implementation choices and the reasons behind them.
-
A hierarchy of profiles and permissions
I used Composite to organise profiles, families and permissions. Each profile contains families, and each family contains permissions. The application walks this structure to decide which operations a user can perform.
-
A shared session for forms
The user session is managed by a lazy Singleton with locking. Forms can query it without receiving it as a parameter. LoginResult and LoginException represent sign-in results and errors.
-
Language switching without restarting
I used Observer to connect forms to a LanguageManager. When the language changes, the manager notifies subscribed forms, and each one loads its texts from JSON files. The application and its help pages are available in Spanish and English.
-
Database configuration in an external file
The data access base class reads the connection string from an external JSON file. If the file is missing or incomplete, it reports the problem with an explicit message. Credentials are kept out of the source code.
-
Detecting database changes
When saving sensitive records, the application calculates horizontal and vertical check digits. A dedicated screen checks the data, detects mismatches and recalculates the control values.
Outcome
What was delivered.
- Both workflows implemented with SQL Server 2022: loans with deposits, returns recording the condition of each copy, penalties, stock by status and automatic purchase orders.
- Role-based access control with profiles, families and permissions, and passwords stored with SHA-256.
- Event log, plus database backup and restore from inside the application.
- Delivery documentation: UML diagrams in Enterprise Architect, an installation manual and per-screen online help, in Spanish and English.
- Public repository with the code of all five layers.
The repository contains the five-layer source code, UML diagrams, installation manual and application help.