LearningformRateDAL.cs 981 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 LearningformRateDAL
  12. {
  13. public LearningformRateRepository LearningformRateRepository { get; set; }
  14. public IQueryable<LearningformRateView> GetLearningformRateViewQueryable(Expression<Func<TP_LearningformRate, bool>> exp)
  15. {
  16. var query = from a in LearningformRateRepository.GetList(exp)
  17. select new LearningformRateView
  18. {
  19. LearningformRateID = a.LearningformRateID,
  20. LearningformID = a.LearningformID,
  21. EducationID = a.EducationID,
  22. Rate = a.Rate
  23. };
  24. return query;
  25. }
  26. }
  27. }