# 3bd-allah/college-management-system architecture

> Architecture diagram of the GitHub repository 3bd-allah/college-management-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/3bd-allah/college-management-system
- Repository: https://github.com/3bd-allah/college-management-system

## Overview

College Management System is an ASP.NET Core MVC application for student access and instructor administration. Students register or sign in, then view their profile, grade-level sections, and courses; administrators reach management actions for courses, sections, and students. The README describes course enrollment, but the sampled student controller only lists courses and sections, so no enrollment action is shown. The database uses EF Core with SQL Server and Identity. Relationships below follow sampled calls or explicit README claims; unsampled view wiring is omitted.

Main entry points: [`CollegeManagementSystem/Controllers/AccountController.cs`](https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Controllers/AccountController.cs) (Account Access), [`CollegeManagementSystem/Models/Data/AppDbContext.cs`](https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Models/Data/AppDbContext.cs) (EF Core Context), [`CollegeManagementSystem/Areas/Admin/Controllers/MainController.cs`](https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Areas/Admin/Controllers/MainController.cs) (Admin Dashboard), [`CollegeManagementSystem/Controllers/StudentController.cs`](https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Controllers/StudentController.cs) (Student Portal)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Identity and Access"]
  node_account["Account Access"]
  node_identity_models["Identity Models"]
end

subgraph group_student["Student Portal"]
  node_student_portal["Student Portal"]
  node_home["Home Pages<br/>[HomeController.cs]"]
end

subgraph group_admin["Administration"]
  node_admin_main["Admin Dashboard<br/>[MainController.cs]"]
  node_admin_courses["Course Management"]
  node_admin_sections["Section Management"]
  node_admin_students["Student Management"]
end

subgraph group_data["Persistence and Domain"]
  node_db_context["EF Core Context<br/>[AppDbContext.cs]"]
  node_sql_server[("College Database")]
  node_entities["Domain Entities"]
  node_view_models["Form Models"]
end

node_student_actor(("Student"))
node_instructor_actor(("Instructor"))

node_student_actor -->|"registers or signs in"| node_account
node_instructor_actor -->|"signs in"| node_account
node_account -->|"creates and checks"| node_identity_models
node_account -->|"reads grades; saves student"| node_db_context
node_account -->|"accepts forms"| node_view_models
node_account -->|"redirects admin"| node_admin_main
node_account -->|"redirects student"| node_student_portal
node_student_portal -->|"queries student data"| node_db_context
node_student_portal -->|"finds user"| node_identity_models
node_admin_main -->|"redirects course management"| node_admin_courses
node_admin_main -->|"redirects section management"| node_admin_sections
node_admin_main -->|"redirects student management"| node_admin_students
node_admin_courses -->|"reads and writes courses"| node_db_context
node_admin_courses -->|"accepts course form"| node_view_models
node_admin_sections -->|"reads and writes sections"| node_db_context
node_admin_sections -->|"accepts section form"| node_view_models
node_admin_students -->|"manages students"| node_db_context
node_db_context -->|"maps entity sets"| node_entities
node_db_context -->|"configures SQL Server"| node_sql_server

click node_account "https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Controllers/AccountController.cs"
click node_identity_models "https://github.com/3bd-allah/college-management-system/tree/main/CollegeManagementSystem/Models/IdentityEntities"
click node_student_portal "https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Controllers/StudentController.cs"
click node_home "https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Controllers/HomeController.cs"
click node_admin_main "https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Areas/Admin/Controllers/MainController.cs"
click node_admin_courses "https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Areas/Admin/Controllers/CourseController.cs"
click node_admin_sections "https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Areas/Admin/Controllers/SectionController.cs"
click node_admin_students "https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Areas/Admin/Controllers/StudentController.cs"
click node_db_context "https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Models/Data/AppDbContext.cs"
click node_entities "https://github.com/3bd-allah/college-management-system/tree/main/CollegeManagementSystem/Models/Entities"
click node_view_models "https://github.com/3bd-allah/college-management-system/tree/main/CollegeManagementSystem/ViewModel"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_account,node_identity_models toneBlue
class node_student_portal,node_home toneAmber
class node_admin_main,node_admin_courses,node_admin_sections,node_admin_students toneMint
class node_db_context,node_sql_server,node_entities,node_view_models toneRose
class node_student_actor,node_instructor_actor toneIndigo
```

## Components

### Identity and Access

- [Account Access](https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Controllers/AccountController.cs): `CollegeManagementSystem/Controllers/AccountController.cs`
- [Identity Models](https://github.com/3bd-allah/college-management-system/tree/main/CollegeManagementSystem/Models/IdentityEntities): `CollegeManagementSystem/Models/IdentityEntities`

### Student Portal

- [Student Portal](https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Controllers/StudentController.cs): `CollegeManagementSystem/Controllers/StudentController.cs`
- [Home Pages](https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Controllers/HomeController.cs): `CollegeManagementSystem/Controllers/HomeController.cs`

### Administration

- [Admin Dashboard](https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Areas/Admin/Controllers/MainController.cs): `CollegeManagementSystem/Areas/Admin/Controllers/MainController.cs`
- [Course Management](https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Areas/Admin/Controllers/CourseController.cs): `CollegeManagementSystem/Areas/Admin/Controllers/CourseController.cs`
- [Section Management](https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Areas/Admin/Controllers/SectionController.cs): `CollegeManagementSystem/Areas/Admin/Controllers/SectionController.cs`
- [Student Management](https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Areas/Admin/Controllers/StudentController.cs): `CollegeManagementSystem/Areas/Admin/Controllers/StudentController.cs`

### Persistence and Domain

- [EF Core Context](https://github.com/3bd-allah/college-management-system/blob/main/CollegeManagementSystem/Models/Data/AppDbContext.cs): `CollegeManagementSystem/Models/Data/AppDbContext.cs`
- **College Database**
- [Domain Entities](https://github.com/3bd-allah/college-management-system/tree/main/CollegeManagementSystem/Models/Entities): `CollegeManagementSystem/Models/Entities`
- [Form Models](https://github.com/3bd-allah/college-management-system/tree/main/CollegeManagementSystem/ViewModel): `CollegeManagementSystem/ViewModel`

### Other components

- **Student**
- **Instructor**

## Connections

- Student → Account Access: registers or signs in (evidence: `README.md`)
- Instructor → Account Access: signs in (evidence: `README.md`)
- Account Access → Identity Models: creates and checks (evidence: `CollegeManagementSystem/Controllers/AccountController.cs`)
- Account Access → EF Core Context: reads grades; saves student (evidence: `CollegeManagementSystem/Controllers/AccountController.cs`)
- Account Access → Form Models: accepts forms (evidence: `CollegeManagementSystem/Controllers/AccountController.cs`)
- Account Access → Admin Dashboard: redirects admin (evidence: `CollegeManagementSystem/Controllers/AccountController.cs`)
- Account Access → Student Portal: redirects student (evidence: `CollegeManagementSystem/Controllers/AccountController.cs`)
- Student Portal → EF Core Context: queries student data (evidence: `CollegeManagementSystem/Controllers/StudentController.cs`)
- Student Portal → Identity Models: finds user (evidence: `CollegeManagementSystem/Controllers/StudentController.cs`)
- Admin Dashboard → Course Management: redirects course management (evidence: `CollegeManagementSystem/Areas/Admin/Controllers/MainController.cs`)
- Admin Dashboard → Section Management: redirects section management (evidence: `CollegeManagementSystem/Areas/Admin/Controllers/MainController.cs`)
- Admin Dashboard → Student Management: redirects student management (evidence: `CollegeManagementSystem/Areas/Admin/Controllers/MainController.cs`)
- Course Management → EF Core Context: reads and writes courses (evidence: `CollegeManagementSystem/Areas/Admin/Controllers/CourseController.cs`)
- Course Management → Form Models: accepts course form (evidence: `CollegeManagementSystem/Areas/Admin/Controllers/CourseController.cs`)
- Section Management → EF Core Context: reads and writes sections (evidence: `CollegeManagementSystem/Areas/Admin/Controllers/SectionController.cs`)
- Section Management → Form Models: accepts section form (evidence: `CollegeManagementSystem/Areas/Admin/Controllers/SectionController.cs`)
- Student Management → EF Core Context: manages students (evidence: `CollegeManagementSystem/Areas/Admin/Controllers/StudentController.cs`)
- EF Core Context → Domain Entities: maps entity sets (evidence: `CollegeManagementSystem/Models/Data/AppDbContext.cs`)
- EF Core Context → College Database: configures SQL Server (evidence: `CollegeManagementSystem/Models/Data/AppDbContext.cs`)
