This commit is contained in:
funa4i 2024-10-28 20:20:36 +04:00
parent 898a3c0c7b
commit c3a50e6988
14 changed files with 268 additions and 1 deletions

View File

@ -2,7 +2,7 @@
namespace StudentProgressRecord.Repositories namespace StudentProgressRecord.Repositories
{ {
public interface IStatementReposytory public interface IStatementRepository
{ {
IEnumerable<Statement> ReadStatements(long? subjectId, long? teacherId, long? studentId, DateTime? dateTo=null, int? mark=null); IEnumerable<Statement> ReadStatements(long? subjectId, long? teacherId, long? studentId, DateTime? dateTo=null, int? mark=null);
Statement ReadStatementById(long id); Statement ReadStatementById(long id);

View File

@ -0,0 +1,38 @@
using StudentProgressRecord.Entity;
using StudentProgressRecord.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StudentProgressRecord.RepositoryImp
{
public class DepartmentRepository : IDepartmentRepository
{
public void CreateDepartment(Department department)
{
}
public void DeleteDepartment(long id)
{
}
public Department ReadDepartmentById(long id)
{
return Department.CreateDepartment(0, string.Empty, 0);
}
public IEnumerable<Department> ReadDepartments(long? facultyId = null)
{
return [];
}
public void UpdateDepartment(Department department)
{
}
}
}

View File

@ -0,0 +1,38 @@
using StudentProgressRecord.Entity;
using StudentProgressRecord.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StudentProgressRecord.RepositoryImp
{
public class FacultyRepository : IFacultyRepository
{
public void CreateFaculty(Faculty faculty)
{
}
public void DeleteFaculty(long id)
{
}
public IEnumerable<Faculty> ReadFaculties()
{
return [];
}
public Faculty ReadFacultyById(long id)
{
return Faculty.CreateFaculty(0, string.Empty);
}
public void UpdateFaculty(Faculty faculty)
{
}
}
}

View File

@ -0,0 +1,39 @@
using StudentProgressRecord.Entity;
using StudentProgressRecord.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StudentProgressRecord.RepositoryImp
{
public class GroupRepository : IGroupRepository
{
public void CreateGroup(Group group)
{
}
public void DeleteGroup(long id)
{
}
public Group ReadGroupById(long id)
{
return Group.CreateGroup(0, string.Empty, 0);
}
public IEnumerable<Group> ReadGroups(long? departmentId = null)
{
return [];
}
public void UpdateGroup(Group group)
{
}
}
}

View File

@ -0,0 +1,38 @@
using StudentProgressRecord.Entity;
using StudentProgressRecord.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StudentProgressRecord.RepositoryImp
{
public class StatementRepository : IStatementRepository
{
public void CreateStatement(Statement statement)
{
}
public void DeleteStatement(long id)
{
}
public Statement ReadStatementById(long id)
{
return Statement.CreateStatement(0, 0, 0, DateTime.Now, 0);
}
public IEnumerable<Statement> ReadStatements(long? subjectId, long? teacherId, long? studentId, DateTime? dateTo = null, int? mark = null)
{
return [];
}
public void UpdateStatement(Statement statement)
{
}
}
}

View File

@ -0,0 +1,38 @@
using StudentProgressRecord.Entity;
using StudentProgressRecord.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StudentProgressRecord.RepositoryImp
{
public class StudentRepository : IStudentRepository
{
public void CreateStudent(Student student)
{
}
public void DeleteStudent(long id)
{
}
public Student ReadStudentById(long id)
{
return Student.CreateStudent(0, string.Empty, false, false, 0);
}
public IEnumerable<Student> ReadStudents(long? groupId = null, bool? familyPos = null, bool? domitory = null)
{
return [];
}
public void UpdateStudent(Student student)
{
}
}
}

View File

@ -0,0 +1,38 @@
using StudentProgressRecord.Entity;
using StudentProgressRecord.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StudentProgressRecord.RepositoryImp
{
public class SubjectRepository : ISubjectRepository
{
public void CreateSubject(Subject subject)
{
}
public void DeleteSubject(long id)
{
}
public Subject ReadSubjectById(long id)
{
return Subject.CreateSubject(0, string.Empty);
}
public IEnumerable<Subject> ReadSubjects()
{
return [];
}
public void UpdateSubject(Subject subject)
{
}
}
}

View File

@ -0,0 +1,38 @@
using StudentProgressRecord.Entity;
using StudentProgressRecord.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StudentProgressRecord.RepositoryImp
{
public class TeacherRepository : ITeacherRepository
{
public void CreateTeacher(Teacher teacher)
{
}
public void DeleteTeacher(long id)
{
}
public Teacher ReadTeacherById(long id)
{
return Teacher.CreateTeacher(0, string.Empty, 0);
}
public IEnumerable<Teacher> ReadTeachers(long? departmentID = null)
{
return [];
}
public void UpdateTeacher(Teacher teacher)
{
}
}
}