Adding the token entity

From Solution Explorer, right-click on the /Data/Models/ folder and add a new Token.ts C# class file, filling it with the following content:

using System;using System.Collections.Generic;using System.ComponentModel;using System.ComponentModel.DataAnnotations;using System.ComponentModel.DataAnnotations.Schema;namespace TestMakerFreeWebApp.Data{    public class Token    {        #region Constructor        public Token()        {        }        #endregion        #region Properties        [Key]        [Required]        public int Id { get; set; }        [Required]        public string ClientId { get; set; }        [Required]        public string Value { get; set; }        public int Type { get; set; }        [Required]        public string UserId { get; set; }        [Required]        public DateTime CreatedDate { get; set; }        #endregion #region Lazy-Load ...

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.