StudentCountRateDAL.cs 977 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.DataLogic.Repositories;
  6. using EMIS.ViewModel.PaymentManage;
  7. using System.Linq.Expressions;
  8. using EMIS.Entities;
  9. namespace EMIS.DataLogic.PaymentManage
  10. {
  11. public class StudentCountRateDAL
  12. {
  13. public StudentCountRateRepository StudentCountRateRepository { get; set; }
  14. public IQueryable<StudentCountRateView> GetStudentCountRateViewQueryable(Expression<Func<TP_StudentCountRate, bool>> exp)
  15. {
  16. var query = from a in StudentCountRateRepository.GetList(exp)
  17. select new StudentCountRateView
  18. {
  19. StudentCountRateID = a.StudentCountRateID,
  20. TitleID = a.Title,
  21. BaseStudentCount = a.BaseStudentCount,
  22. Limit = a.Limit
  23. };
  24. return query;
  25. }
  26. }
  27. }