Entities
This commit is contained in:
parent
c31d974ff1
commit
7d448c781e
27
StudentProgressRecord/Entity/Department.cs
Normal file
27
StudentProgressRecord/Entity/Department.cs
Normal 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
|
||||
};
|
||||
}
|
||||
}
|
25
StudentProgressRecord/Entity/Faculty.cs
Normal file
25
StudentProgressRecord/Entity/Faculty.cs
Normal 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
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
28
StudentProgressRecord/Entity/Group.cs
Normal file
28
StudentProgressRecord/Entity/Group.cs
Normal 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
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
34
StudentProgressRecord/Entity/Statement.cs
Normal file
34
StudentProgressRecord/Entity/Statement.cs
Normal 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 };
|
||||
}
|
||||
}
|
||||
}
|
34
StudentProgressRecord/Entity/Student.cs
Normal file
34
StudentProgressRecord/Entity/Student.cs
Normal 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
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
24
StudentProgressRecord/Entity/Subject.cs
Normal file
24
StudentProgressRecord/Entity/Subject.cs
Normal 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
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
28
StudentProgressRecord/Entity/Teacher.cs
Normal file
28
StudentProgressRecord/Entity/Teacher.cs
Normal 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
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user