This commit is contained in:
funa4i 2024-10-28 19:18:57 +04:00
parent c31d974ff1
commit 7d448c781e
7 changed files with 200 additions and 0 deletions

View File

@ -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
};
}
}

View File

@ -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
};
}
}
}

View File

@ -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
};
}
}
}

View File

@ -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 };
}
}
}

View File

@ -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
};
}
}
}

View File

@ -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
};
}
}
}

View File

@ -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
};
}
}
}