ApplicationUser

Let's start with the entity that will be used to store all the user-related info. We'll use it for a number of useful tasks, such as keeping record of who created each quiz, tracking those who will take the quizzes, handling the login and authentication phase, and more.

Switch to Solution Explorer, then do the following:

  1. Create a new /Data/ folder at the root level of the TestMakerFreeWebApp project; this will be where all our EntityFramework-related classes will reside.
  2. Create a /Data/Models/ folder.
  3. Add a new ASP.NET Core | Code | Class file, name it ApplicationUser.cs, and replace the sample code with the following:
using System;using System.Collections.Generic;using System.ComponentModel;using System.ComponentModel.DataAnnotations; ...

Get ASP.NET Core 2 and Angular 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.