ScientificReport
Department.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel.DataAnnotations;
5 
6 namespace ScientificReport.DAL.Entities
7 {
8  public class Department
9  {
10  public enum SortByOption
11  {
12  Title, StaffCount, TotalScientificWorksCount
13  }
14 
15  [Key]
16  public Guid Id { get; set; }
17 
18  public string Title { get; set; }
19 
20  public virtual UserProfile.UserProfile Head { get; set; }
21 
22  public virtual ICollection<ScientificWork> ScientificWorks { get; set; }
23 
24  public virtual ICollection<UserProfile.UserProfile> Staff { get; set; }
25  }
26 }