GitHunt
TU

TulyXPlatform/University-Management

ASP.NET MVC 5 application implementing the Contoso University management system with Entity Framework 6. Features RBAC, student enrollment, course management, instructor assignment, and database operations using a clean MVC architecture. Using code first architecture with pagination, Master details with 6 type data types features.

A University Management System built with ASP.NET Core MVC and Entity Framework Core.
This project demonstrates how to build a real-world CRUD application using MVC architecture, database relationships, and modern .NET development practices.

The project is based on Microsoft's Contoso University tutorial and showcases core backend development skills using C#, EF Core, and SQL Server.


๐Ÿš€ Features

โœ” Student Management (Create, Edit, Delete, View)
โœ” Course Management
โœ” Instructor Management
โœ” Student Enrollment System
โœ” Department Management
โœ” Database Relationships using Entity Framework Core
โœ” Server-side Validation
โœ” Clean MVC Architecture


๐Ÿ› ๏ธ Technologies Used

Technology Description
ASP.NET Core MVC Web application framework
C# Programming language
Entity Framework Core ORM for database operations
SQL Server Relational database
Razor Views Dynamic UI rendering
Bootstrap Frontend styling

๐Ÿ“‚ Project Structure

ContosoUniversity
โ”‚
โ”œโ”€โ”€ Controllers

โ”‚ โ”œโ”€โ”€ StudentsController.cs

โ”‚ โ”œโ”€โ”€ CoursesController.cs

โ”‚ โ”œโ”€โ”€ InstructorsController.cs

โ”‚

โ”œโ”€โ”€ Models

โ”‚ โ”œโ”€โ”€ Student.cs

โ”‚ โ”œโ”€โ”€ Course.cs

โ”‚ โ”œโ”€โ”€ Enrollment.cs

โ”‚ โ”œโ”€โ”€ Instructor.cs

โ”‚

โ”œโ”€โ”€ Data

โ”‚ โ””โ”€โ”€ SchoolContext.cs

โ”‚

โ”œโ”€โ”€ Views

โ”‚ โ”œโ”€โ”€ Students

โ”‚ โ”œโ”€โ”€ Courses

โ”‚ โ”œโ”€โ”€ Instructors

โ”‚

โ”œโ”€โ”€ wwwroot

โ”‚ โ”œโ”€โ”€ css

โ”‚ โ”œโ”€โ”€ js

โ”‚ โ””โ”€โ”€ images

โ”‚

โ””โ”€โ”€ appsettings.json

โš™๏ธ Installation & Setup

1๏ธโƒฃ Clone the Repository

bash
git clone https://github.com/YOUR_USERNAME/contoso-university.git

2๏ธโƒฃ Open the Project
Open the project in Visual Studio 2022 or later
Open the solution file:
ContosoUniversity.sln

3๏ธโƒฃ Configure the Database
Edit the connection string inside:
appsettings.json
Example:
"ConnectionStrings": {
"DefaultConnection": "Server=(localdb)\mssqllocaldb;Database=ContosoUniversity;Trusted_Connection=True;"
}
4๏ธโƒฃ Apply Database Migration
Open Package Manager Console and run:
Update-Database
This will automatically create the required database tables.

5๏ธโƒฃ Run the Application
Press:
Ctrl + F5
The project will start in your browser.

๐Ÿ“š Learning Outcomes

This project demonstrates:

ASP.NET Core MVC architecture
Entity Framework Core ORM usage
CRUD operations
Database relationships
Model validation
Razor view engine
Clean project structure

๐Ÿ‘ฉโ€๐Ÿ’ป Author

Tamima Mollick Tuly
๐Ÿ“ง Email: tamima.web5202@gmail.com
๐Ÿ’ผ LinkedIn: https://www.linkedin.com/in/tamima-mollick-tuly/

๐Ÿ“„ License

This project is created for learning and educational purposes following the Microsoft Contoso University tutorial.
home-page
student-page
course-page
department-page
master-detailed-overview
instructor-page

Languages

JavaScript55.2%HTML26.6%C#17.3%CSS0.8%ASP.NET0.0%

Contributors

Created March 11, 2026
Updated March 11, 2026