PracticeRateDAL.cs 880 B

12345678910111213141516171819202122232425262728
  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 PracticeRateDAL
  12. {
  13. public PracticeRateRepository PracticeRateRepository { get; set; }
  14. public IQueryable<PracticeRateView> GetPracticeRateViewQueryable(Expression<Func<TP_PracticeRate, bool>> exp)
  15. {
  16. var query = from a in PracticeRateRepository.GetList(exp)
  17. select new PracticeRateView
  18. {
  19. PracticeRateID = a.PracticeRateID,
  20. CourseTypeID = a.CourseTypeID,
  21. Rate = a.Rate
  22. };
  23. return query;
  24. }
  25. }
  26. }