Author: Luay Younus
Web app that allows students to enroll into new courses at the Star Gazers university. The main purpose of this app is to practice Entity Framework with actual implementation. Sorting mechanisms are used in the App.
- C# ASP.NET Core application.
- MVC architectural design pattern.
- Entity Framework (Object-Relational Mapper)
- Visual Studio 2017 Community with .NET Core 2.0 SDK
- GitBash / Terminal or GitHub Extension for Visual Studio
- Clone the repository to your local machine.
- Cd into the application directory where the
AppName.sln
exist. - Open the application using
Open/Start AppName.sln
. - Once Visual Studio is opened, you can Run the application by clicking on the Play button .
- The website will run on your default web browser routing to the main home page.
- A welcome message with a form to fill in order to enroll into a course at the Star Gazers University.
- Very simple UI with a table that enlist all students enrolled with their classes and other information.
- Not found page that shows whenever a wrong entry happen or a bad route is requested.
- DbContext for dependency injection
- Two Main controllers
- One Main Student Model
- ASP Tag Helpers are used for routing
DbContextOptionsBuilder<StudentDbContext> builder = new DbContextOptionsBuilder<StudentDbContext;
builder.UseInMemoryDatabase;
DbContextOptions<StudentDbContext> options = builder.Options;
_context = new StudentDbContext(options);
- AspNetCore.All
- EntityFrameworkCore.InMemory
- EntityFrameworkCore.Tools
- Xunit
- Xunit.Runner