StudentSynchDAL.cs 894 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Linq.Expressions;
  5. using System.Text;
  6. using EMIS.DataLogic.Repositories.DataCenter;
  7. using EMIS.DataLogic.Repositories.LYDataCenter;
  8. using EMIS.Entities.DataCenter;
  9. namespace EMIS.DataLogic.DataCenterSynch
  10. {
  11. public class StudentSynchDAL
  12. {
  13. public XSJBXXRepository XSJBXXRepository { get; set; }
  14. public LXXXRepository LXXXRepository { get; set; }
  15. public XXBZ_JWXT_XSJBXX_VIEWRepository XXBZ_JWXT_XSJBXX_VIEWRepository { get; set; }
  16. public IQueryable<XS_LXXX> GetXS_LXXX(Expression<Func<XS_XSJBXX, bool>> exp)
  17. {
  18. var query = (from student in XSJBXXRepository.GetList(exp)
  19. from contact in LXXXRepository.Entities.Where(x => x.XH == student.XH)
  20. select contact);
  21. return query;
  22. }
  23. }
  24. }