diff --git a/StudentProgressRecord/Entity/Department.cs b/StudentProgressRecord/Entity/Department.cs new file mode 100644 index 0000000..4f018ae --- /dev/null +++ b/StudentProgressRecord/Entity/Department.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StudentProgressRecord.Entity +{ + public class Department + { + + public long Id { get; set; } + + public string DepartmentName { get; set; } + + public long facultyId { get; set; } + + public static Department CreateDepartment(long id, string DepartmentName, long facultyId) + { + return new Department + { + Id = id, + DepartmentName = DepartmentName, + facultyId = facultyId + }; + } +} diff --git a/StudentProgressRecord/Entity/Faculty.cs b/StudentProgressRecord/Entity/Faculty.cs new file mode 100644 index 0000000..35616cc --- /dev/null +++ b/StudentProgressRecord/Entity/Faculty.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StudentProgressRecord.Entity +{ + public class Faculty + { + public long Id { get; set; } + + public string FacultyName { get; set; } + + public static Faculty CreateFaculty(long id, string facultyName) + { + return new Faculty() + { + Id = id, + FacultyName = facultyName + }; + + } + } +} diff --git a/StudentProgressRecord/Entity/Group.cs b/StudentProgressRecord/Entity/Group.cs new file mode 100644 index 0000000..4990ca8 --- /dev/null +++ b/StudentProgressRecord/Entity/Group.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StudentProgressRecord.Entity +{ + public class Group + { + public long Id { get; set; } + + public string GroupName { get; set; } + + public long DepartmentId { get; set; } + + public static Group CreateGroup(long id, string groupName, long departmentId) + { + return new Group + { + Id = id, + GroupName = groupName, + DepartmentId = departmentId + }; + } + + } +} diff --git a/StudentProgressRecord/Entity/Statement.cs b/StudentProgressRecord/Entity/Statement.cs new file mode 100644 index 0000000..f1381cf --- /dev/null +++ b/StudentProgressRecord/Entity/Statement.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StudentProgressRecord.Entity +{ + public class Statement + { + + public long SubjectId { get; set; } + + public long TeacherId { get; set; } + + public long StudentId { get; set; } + + public DateTime date { get; set; } + + public int Mark { get; set; } + + public static Statement CreateStatement(long subjectId, long teacherId, long studentId, DateTime timeStamp, int mark) + { + return new Statement + { + SubjectId = subjectId, + TeacherId = teacherId, + StudentId = studentId, + date = timeStamp, + Mark = mark }; + } + } +} diff --git a/StudentProgressRecord/Entity/Student.cs b/StudentProgressRecord/Entity/Student.cs new file mode 100644 index 0000000..1b7e9a9 --- /dev/null +++ b/StudentProgressRecord/Entity/Student.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StudentProgressRecord.Entity +{ + public class Student + { + + public long Id { get; set; } + + public string Fio { get; set; } + + public bool FamilyPos { get; set; } + + public bool Domitory { get; set; } + + public long GroupId { get; set; } + + public static Student CreateStudent(long id, string fio, bool familyPos, bool domitory, long groupId) + { + return new Student + { + Id = id, + Fio = fio, + FamilyPos = familyPos, + Domitory = domitory, + GroupId = groupId + }; + } + } +} diff --git a/StudentProgressRecord/Entity/Subject.cs b/StudentProgressRecord/Entity/Subject.cs new file mode 100644 index 0000000..0e5b14d --- /dev/null +++ b/StudentProgressRecord/Entity/Subject.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StudentProgressRecord.Entity +{ + public class Subject + { + public long Id { get; set; } + + public string Name { get; set; } + + public static Subject CreateSubject(long id, string name) + { + return new Subject + { + Id = id, + Name = name + }; + } + } +} diff --git a/StudentProgressRecord/Entity/Teacher.cs b/StudentProgressRecord/Entity/Teacher.cs new file mode 100644 index 0000000..2ceea3d --- /dev/null +++ b/StudentProgressRecord/Entity/Teacher.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StudentProgressRecord.Entity +{ + public class Teacher + { + public long Id { get; set; } + + public string Fio { get; set; } + + public long DepartmentID { get; set; } + + public static Teacher CreateTeacher(long id, string Fio, long DepartmentID) + { + return new Teacher + { + Id = id, + Fio = Fio, + DepartmentID = DepartmentID + }; + } + + } +}