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



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 =>