/ContosoUniversityPremiere

The Contoso University sample web app demonstrates how to create an ASP.NET Core Razor Pages app using Entity Framework Core.

Primary LanguageC#MIT LicenseMIT

Contoso University Sample Application

This web app is loosely based on Contoso University built in Razor Pages with Entity Framework Core in ASP.NET Core - Tutorial 1 of 8 By Tom Dykstra and Rick Anderson.

Introduction

The Contoso University sample web app demonstrates how to create an ASP.NET Core Razor Pages app using Entity Framework (EF) Core.

The sample app is a web site for a fictional Contoso University. It includes functionality such as student admission, course creation, and instructor assignments.

Here are a few of the screens created in the tutorial.

students-index

student-edit

The UI style of this site is close to what's generated by the built-in templates. The tutorial focus is on EF Core with Razor Pages, not the UI.

Prerequisites

  • Visual Studio 2019
  • ASP.NET Core 2.2
  • SQL Server Data Tools

If you installed Visual Studio 2019 with Web development workload you'll have everything you need to build this application.

Getting started

  1. Clone the project.
  2. Open the solution file ContosoUniversityPremiere.sln with Visual Studio 2019.
  3. Press F5 to build and start the application.

Notes

We have added a few architecture 'enhancements'

  • IoW and Repository pattern
  • ViewModels to separate UI and DAL

The low complexity on this sample application may not warrant for such architecture enhancements. Our main purpose is to use this as a 'model' for building well-structured web applications.

License

MIT License

Copyright (c) 2019 Felipe Romero