123456789101112131415161718192021222324252627282930313233 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using EMIS.DataLogic.Repositories;
- using System.Linq.Expressions;
- using EMIS.Entities;
- namespace EMIS.DataLogic.ExamManage
- {
- public class ExaminationBatchDAL
- {
- public ExaminationBatchRepository BatchRepository { get; set; }
- public IQueryable<EMIS.ViewModel.ExaminationBatchView> GetBatchList(Expression<Func<EX_ExaminationBatch, bool>> expCampus)
- {
- var query = from a in BatchRepository.GetList(expCampus)
- select new EMIS.ViewModel.ExaminationBatchView
- {
- EndDate = a.EndDate,
- ExaminationBatchID = a.ExaminationBatchID,
- Name = a.Name,
- Remark = a.Remark,
- Schoolyear = a.CF_Schoolyear.Code,
- SchoolyearID = a.SchoolyearID,
- StartDate = a.StartDate
- };
- return query;
- }
- }
- }
|