A WinForms + MySQL Academic Information System that includes:
- Admin Dashboard — manage students, teachers, groups, subjects
- Teacher Dashboard — view subjects, assign/edit/delete grades
- Student Dashboard — view grades and corresponding subjects/teachers
The system uses MySQL as the backend database and auto-initializes sample data using a DatabaseSeeder.
CREATE DATABASE ais;No tables need to be created manually — the application automatically creates and populates all data (ais.sql).
Open:
AIS/Database/DatabaseConnection.cs
Update your MySQL password:
private static readonly string connectionString =
"server=localhost;user=root;password=YOUR_PASSWORD;database=ais;";Replace YOUR_PASSWORD with your MySQL server password.
The seeder runs on the first launch and automatically inserts:
- Admin account
- Student group (PI24E)
- Example student accounts
- Full subject list
- One unique teacher per subject
- All subject→group assignments
- All teacher→subject assignments
It is triggered inside:
Program.cs
DatabaseSeeder.Seed();You may delete or comment out the call to avoid re-seeding (though the seeder includes duplicate checks).
login: admin
password: admin
login = first name
password = last name
- Install MySQL
- Create the
aisdatabase - Update password in
DatabaseConnection.cs - Run the project
- Log in using admin or any test account
The system is fully functional once seeded. You may modify, extend, or replace the data as needed.