WechatPayListDAL.cs 936 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.DataLogic.Repositories;
  6. using EMIS.Entities;
  7. using EMIS.ViewModel;
  8. namespace EMIS.DataLogic.SystemDAL
  9. {
  10. public class WechatPayListDAL
  11. {
  12. public WechatPayListRepository WechatPayListRepository { get; set; }
  13. public ExaminationRegistrationRepository ExaminationRegistrationRepository { get; set; }
  14. public IQueryable<CF_WechatPayList> GetWechatPayListQueryable()
  15. {
  16. var query = from a in ExaminationRegistrationRepository.Entities.Where(x => x.RecordStatus == (int)EX_ExaminationRegistrationStatus.ForPay || x.RecordStatus == (int)EX_ExaminationRegistrationStatus.Paying)
  17. from b in WechatPayListRepository.Entities.Where(x => x.ExaminationRegistrationID == a.ExaminationRegistrationID)
  18. select b;
  19. return query;
  20. }
  21. }
  22. }