How jorg3abz/t2_alvarezaraujojorge works
Purpose and entry point
This is a layered school-management CRUD application for students, courses, and teachers. The runnable host is an ASP.NET Core MVC GUI project, entered through Colegio.Sistema.PL.GUI/Program.cs; launch/profile settings are in Colegio.Sistema.PL.GUI/Properties/launchSettings.json.
Presentation layer
The MVC presentation project accepts browser requests, binds page models, invokes application services, and renders Razor views. Resource-specific controllers and models exist for the three managed entities:
• Colegio.Sistema.PL.GUI/Controllers/AlumnoController.cs
• Colegio.Sistema.PL.GUI/Controllers/CursoController.cs
• Colegio.Sistema.PL.GUI/Controllers/DocenteController.cs
• Colegio.Sistema.PL.GUI/Models/AlumnoModel.cs
• Colegio.Sistema.PL.GUI/Views/Alumno/Listar.cshtml
Views provide list, create, and edit workflows for each resource; shared layout and client-side validation are centralized in Colegio.Sistema.PL.GUI/Views/Shared/_Layout.cshtml and Colegio.Sistema.PL.GUI/Views/Shared/_ValidationScriptsPartial.cshtml.
Application/service boundary
The application project defines service interfaces and implementations, separating UI orchestration from persistence. Services are organized by Alumno, Curso, and Docente and should be the controller dependency boundary:
• Colegio.Sistema.Application/BL.BC/Services/IAlumnoService.cs
• Colegio.Sistema.Application/BL.BC/Services/CursoService.cs
• Colegio.Sistema.Application/BL.BC/Services/DocenteService.cs
Primary control flow is: HTTP request → MVC controller/model binding → application service → domain repository interface → infrastructure repository → database; returned entities are mapped or presented by MVC views.
Domain core
The domain project owns the core entity types and persistence abstractions, avoiding direct dependency on UI or database implementation:
• Colegio.Sistema.Domain/BL.BE/Entities/Alumno.cs
• Colegio.Sistema.Domain/BL.BE/Entities/Curso.cs
• Colegio.Sistema.Domain/BL.BE/Entities/Docente.cs
• Colegio.Sistema.Domain/BL.BE/Interfaces/IAlumnoRepository.cs
• Colegio.Sistema.Domain/BL.BE/Interfaces/ICursoRepository.cs
• Colegio.Sistema.Domain/BL.BE/Interfaces/IDocenteRepository.cs
Repository interfaces are the principal clean-architecture boundary: application code depends on these contracts, while infrastructure supplies implementations.
Persistence and database integration
Infrastructure implements the domain repository contracts and centralizes connection handling:
• Colegio.Sistema.Infrastructure/DL.DALC/Persistence/IBDConexion.cs
• Colegio.Sistema.Infrastructure/DL.DALC/Persistence/BDConexion.cs
• Colegio.Sistema.Infrastructure/DL.DALC/Repositories/AlumnoRepository.cs
• Colegio.Sistema.Infrastructure/DL.DALC/Repositories/CursoRepository.cs
• Colegio.Sistema.Infrastructure/DL.DALC/Repositories/DocenteRepository.cs
The README specifies a relational database initialized by BDColegio.sql and stored procedures from ClinicaBD_Procedimientos.sql; the referenced database/ directory is not present in the supplied tree. Database credentials/configuration are expected to originate from Colegio.Sistema.PL.GUI/appsettings.json and its development override.
Runtime and dependencies
Projects target .NET 10.0, evidenced by Colegio.Sistema.PL.GUI/bin/Debug/net10.0/Colegio.Sistema.PL.GUI.runtimeconfig.json. The executable web host is Colegio.Sistema.PL.GUI; the other projects are class-library layers. Browser assets include Bootstrap, jQuery, and unobtrusive jQuery validation under Colegio.Sistema.PL.GUI/wwwroot/lib/. No API gateway, queue, cloud service, or separate frontend is represented.
Main entry points: AlumnoController.cs Resource Controllers · AlumnoRepository.cs Repository Implementations · CursoService.cs Application Services · BDConexion.cs Connection Provider
Components 15
MVC Presentation
- ASP.NET Core MVC Host · Application entry point and dependency composition root.
Colegio.Sistema.PL.GUI/Program.cs - Resource Controllers · Alumno, Curso, and Docente request handlers.
Colegio.Sistema.PL.GUI/Controllers/AlumnoController.cs - Page Models · Resource-specific models used for binding and presentation.
Colegio.Sistema.PL.GUI/Models/AlumnoModel.cs - Razor CRUD Views · List, create, and edit workflows for managed resources.
Colegio.Sistema.PL.GUI/Views/Alumno/Listar.cshtml - Shared Layout & Validation
Colegio.Sistema.PL.GUI/Views/Shared/_Layout.cshtml - Database Configuration · Connection settings originate in the GUI project configuration.
Colegio.Sistema.PL.GUI/appsettings.json
Application Layer
- Application Services · UI orchestration for Alumno, Curso, and Docente.
Colegio.Sistema.Application/BL.BC/Services/CursoService.cs - Service Contracts · Controller dependency boundary.
Colegio.Sistema.Application/BL.BC/Services/IAlumnoService.cs
Domain Core
- School Entities · Alumno, Curso, and Docente business types.
Colegio.Sistema.Domain/BL.BE/Entities/Alumno.cs - Repository Contracts · Persistence abstraction owned by the domain.
Colegio.Sistema.Domain/BL.BE/Interfaces/IAlumnoRepository.cs
Infrastructure
- Repository Implementations · Alumno, Curso, and Docente persistence implementations.
Colegio.Sistema.Infrastructure/DL.DALC/Repositories/AlumnoRepository.cs - Connection Provider · Centralizes relational database connectivity.
Colegio.Sistema.Infrastructure/DL.DALC/Persistence/BDConexion.cs - Connection Contract
Colegio.Sistema.Infrastructure/DL.DALC/Persistence/IBDConexion.cs
Other components
- Browser
- Relational School Database · Initialized externally with schema and stored procedures.
Connections 17
- Browser → ASP.NET Core MVC Host: HTTP requests
- ASP.NET Core MVC Host → Resource Controllers: routes to
- Resource Controllers → Page Models: binds
- Resource Controllers → Service Contracts: depends on
- Service Contracts → Application Services: implemented by
- Application Services → School Entities: uses
- Application Services → Repository Contracts: depends on
- Repository Implementations → Repository Contracts: implements
- Repository Implementations → School Entities: persists
- Repository Implementations → Connection Contract: uses
- Connection Provider → Connection Contract: implements
- Connection Provider → Relational School Database: connects to
- Database Configuration → ASP.NET Core MVC Host: configures
- Database Configuration → Connection Provider: supplies settings
- Resource Controllers → Razor CRUD Views: renders
- Page Models → Razor CRUD Views: presented by
- Shared Layout & Validation → Razor CRUD Views: shared by