# swetzell/sistema-matricula-alumnos architecture

> Architecture diagram of the GitHub repository swetzell/sistema-matricula-alumnos, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/swetzell/sistema-matricula-alumnos
- Repository: https://github.com/swetzell/sistema-matricula-alumnos

## Overview

##### Main Architectural Components
- DataBase Component: The "DataBaseMatricula" folder contains the SQL Server database files (*.MDF and *.LDF) which represent the persistent storage.
- Data Access Layer (DAL): The "Matricula_ADO" project encapsulates database connectivity and operations via ADO.NET (notably, files like ConexionADO.cs, AlumnoADO.cs, etc.).
- Business Entities (BE): The "Matricula_BE" project contains classes representing common business objects (AlumnoBE, CursoBE, DocenteBE, etc.). This layer serves as the data model shared across the system.
- Business Logic Layer (BL): The "Matricula_BL" project includes the core logic for processing student information (validation, rules enforcement, etc. – see AlumnoBL.cs, CursoBL.cs, etc.). This layer orchestrates the interaction between the presentation layer and the DAL.
- Presentation/UI Layer: The "Matricula_GUI" project consists of Windows Forms (e.g., Form1.cs, Login.cs, RegistrarAlumno.cs) and associated resources. This is the user interface that administrators use to interact with the system.

##### Establish the Relationships and Interactions
- The GUI (Presentation Layer) triggers user requests (e.g., student registrations, updates) by invoking methods in the Business Logic Layer.
- The Business Logic Layer consumes the Business Entities classes for data representation and uses the Data Access Layer to perform CRUD operations on the SQL Server database.
- The interaction with the Database is facilitated by ADO.NET in the DAL, which manages connections and queries/commands against the SQL Server instance stored in "DataBaseMatricula".

##### Architectural Patterns and Design Principles
- Layered (n-tier) architecture: Clearly separates concerns into Presentation, Business Logic, Data Access, and Data Model (entities).
- CRUD Operations: Standard final operations for managing student records.
- Use of ADO.NET for database transactions and .NET Windows Forms for the frontend.

##### Technologies and Frameworks
- C# and .NET Framework for overall development.
- ADO.NET for database interactions.
- SQL Server as the data store.
- Windows Forms for the GUI.

## Diagram (Mermaid)

```mermaid
flowchart TD
    GUI("Presentation Layer - Matricula_GUI (Windows Forms)"):::presentation
    BL("Business Logic Layer - Matricula_BL"):::businessLogic
    BE("Business Entities - Matricula_BE"):::businessEntities
    DAL("Data Access Layer - Matricula_ADO (ADO.NET)"):::dataAccess
    DB("Database - SQL Server (DataBaseMatricula)"):::database

    GUI -->|"initiates"| BL
    BL -->|"uses"| BE
    BL -->|"delegates"| DAL
    DAL -->|"executes"| DB
    DB -->|"returnsData"| DAL
    DAL -->|"sendsResponse"| BL
    BL -->|"updatesUI"| GUI

    click GUI "https://github.com/swetzell/sistema-matricula-alumnos/tree/main/Matricula_GUI"
    click BL "https://github.com/swetzell/sistema-matricula-alumnos/tree/main/Matricula_BL"
    click BE "https://github.com/swetzell/sistema-matricula-alumnos/tree/main/Matricula_BE"
    click DAL "https://github.com/swetzell/sistema-matricula-alumnos/tree/main/Matricula_ADO"
    click DB "https://github.com/swetzell/sistema-matricula-alumnos/tree/main/DataBaseMatricula"

    classDef presentation fill:#ADD8E6,stroke:#000,stroke-width:1px;
    classDef businessLogic fill:#90EE90,stroke:#000,stroke-width:1px;
    classDef businessEntities fill:#FFB6C1,stroke:#000,stroke-width:1px;
    classDef dataAccess fill:#FFFF99,stroke:#000,stroke-width:1px;
    classDef database fill:#FFA07A,stroke:#000,stroke-width:1px;
```
