Skip to content

Instantly share code, notes, and snippets.

@nishanc
Last active May 4, 2021 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nishanc/f0f3cd1d3377c210c4514bcfb10bd7b4 to your computer and use it in GitHub Desktop.
Save nishanc/f0f3cd1d3377c210c4514bcfb10bd7b4 to your computer and use it in GitHub Desktop.
using System.ComponentModel.DataAnnotations.Schema;
[Table("TPTUsers")]
public class TPTUser
{
public int Id { get; set; }
public string Username { get; set; }
public string Email { get; set; }
}
[Table("TPTTeachers")]
public class TPTTeacher : TPTUser
{
public string Designation { get; set; }
public string Speciality { get; set; }
}
[Table("TPTStudents")]
public class TPTStudent : TPTUser
{
public string CGPA { get; set; }
public string Major { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment