using StudyLib.API.Models; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace StudyLib.Models { public class Subject { public long ID { get; set; } [Required] public string Name { get; set; } public string LectureTeacher { get; set; } public string LabTeacher { get; set; } public bool MainExam { get; set; } public DateTime ExamDate { get; set; } public ICollection Tests { get; set; } public ICollection Assignments { get; set; } public ICollection Comments { get; set; } } }