TeacherScoreDAL.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMISOnline.DataLogic.Repositories;
  6. namespace EMISOnline.DataLogic.CourseworkMgr
  7. {
  8. public class TeacherScoreDAL
  9. {
  10. public TeacherScoreRepository teacherScoreRepository { get; set; }
  11. public TeacherScoreRepository getRepository()
  12. {
  13. return teacherScoreRepository;
  14. }
  15. public IQueryable<Entities.ER_TeacherScore> StudentScoreList(Guid TeacherID, Guid SchoolyearID)
  16. {
  17. var DataUnitWork = teacherScoreRepository.UnitOfWork;
  18. var Tslist = DataUnitWork.ER_TeacherScore.Where(w => w.SchoolyearID == SchoolyearID);
  19. return Tslist;
  20. }
  21. public IQueryable<Entities.V_StudentEducationMissionClass> getStudentClassListbySChoolYear(Guid TeacherID, Guid SchoolyearID)
  22. {
  23. var DataUnitWork = teacherScoreRepository.UnitOfWork;
  24. var list = DataUnitWork.V_StudentEducationMissionClass.Where(w => w.SchoolyearID == SchoolyearID && w.TeacherID == TeacherID);
  25. return list;
  26. }
  27. }
  28. }