ScientificReport
UserProfile.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using Microsoft.AspNetCore.Identity;
4 
5 namespace ScientificReport.DAL.Entities.UserProfile
6 {
7  public class UserProfile : IdentityUser<Guid>
8  {
9  public enum SexValue
10  {
11  Male, Female, None
12  }
13 
14  public string FirstName { get; set; }
15 
16  public string MiddleName { get; set; }
17 
18  public string LastName { get; set; }
19 
20  public int BirthYear { get; set; }
21 
22  public int GraduationYear { get; set; }
23 
24  public string ScientificDegree { get; set; }
25 
26  public int YearDegreeGained { get; set; }
27 
28  public string AcademicStatus { get; set; }
29 
30  public int YearDegreeAssigned { get; set; }
31 
32  public string Position { get; set; }
33 
34  public bool IsApproved { get; set; }
35 
36  public bool IsActive { get; set; }
37 
38  public SexValue Sex { get; set; }
39 
40  public virtual ICollection<UserProfilesPublications> UserProfilesPublications { get; set; }
41 
42  public virtual ICollection<UserProfilesGrants> UserProfilesGrants { get; set; }
43 
44  public virtual ICollection<UserProfilesScientificWorks> UserProfilesScientificWorks{ get; set; }
45 
46  public virtual ICollection<UserProfilesArticles> UserProfilesArticles { get; set; }
47 
48  public virtual ICollection<UserProfilesReportThesis> UserProfilesReportTheses { get; set; }
49 
50  public virtual ICollection<UserProfilesScientificInternships> UserProfilesScientificInternships { get; set; }
51 
52  public virtual ICollection<AuthorsPatentLicenseActivities> AuthorsPatentLicenseActivities { get; set; }
53 
54  public virtual ICollection<ApplicantsPatentLicenseActivities> ApplicantsPatentLicenseActivities { get; set; }
55 
56  public string FullName => $"{LastName} {FirstName} {MiddleName}";
57  public override string ToString()
58  {
59  return FullName;
60  }
61  }
62 }