PaymentStandardDAL.cs 959 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 PaymentStandardDAL
  12. {
  13. public PaymentStandardRepository PaymentStandardRepository { get; set; }
  14. public IQueryable<PaymentStandardView> GetPaymentStandardViewQueryable(Expression<Func<TP_PaymentStandard, bool>> exp)
  15. {
  16. var query = from a in PaymentStandardRepository.GetList(exp)
  17. select new PaymentStandardView
  18. {
  19. PaymentStandardID = a.PaymentStandardID,
  20. TitleID = a.Title,
  21. TeacherType = a.TeacherType,
  22. Amount = a.Amount
  23. };
  24. return query;
  25. }
  26. }
  27. }