ReposImp
This commit is contained in:
parent
898a3c0c7b
commit
c3a50e6988
@ -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);
|
38
StudentProgressRecord/RepositoryImp/DepartmentRepository.cs
Normal file
38
StudentProgressRecord/RepositoryImp/DepartmentRepository.cs
Normal 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)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
38
StudentProgressRecord/RepositoryImp/FacultyRepository.cs
Normal file
38
StudentProgressRecord/RepositoryImp/FacultyRepository.cs
Normal 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)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
39
StudentProgressRecord/RepositoryImp/GroupRepository.cs
Normal file
39
StudentProgressRecord/RepositoryImp/GroupRepository.cs
Normal 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)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
38
StudentProgressRecord/RepositoryImp/StatementRepository.cs
Normal file
38
StudentProgressRecord/RepositoryImp/StatementRepository.cs
Normal 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)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
38
StudentProgressRecord/RepositoryImp/StudentRepository.cs
Normal file
38
StudentProgressRecord/RepositoryImp/StudentRepository.cs
Normal 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)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
38
StudentProgressRecord/RepositoryImp/SubjectRepository.cs
Normal file
38
StudentProgressRecord/RepositoryImp/SubjectRepository.cs
Normal 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)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
38
StudentProgressRecord/RepositoryImp/TeacherRepository.cs
Normal file
38
StudentProgressRecord/RepositoryImp/TeacherRepository.cs
Normal 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)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user