Contoso University: First implementation with Razor Pages on .NET 3.1 and EF Core

Docs: https://docs.microsoft.com/en-us/aspnet/core/data/ef-rp/intro?view=aspnetcore-3.1&tabs=visual-studio

Repo: https://github.com/cesar-younes/ContosoUniversity-dotnet/

My changes from the tutorial:

  • I made all the Id's of all the models a string. They used different kinds of Id's and different naming conventions for demo purposes
  • Added InMemory DB for local development and SQL for Production. Used this approach to define a different configuration for each.
    • See here for docs on the different environments available
    • Note to self, InMemory DB requires this library: Microsoft.EntityFrameworkCore.InMemory then can be used like this:
       services.AddDbContext<SchoolContext>(c =>
                      c.UseInMemoryDatabase("SchoolDb"));