1234567891011121314151617181920212223242526272829303132333435 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using EMIS.ViewModel.ExaminationApply;
- using EMIS.DataLogic.Repositories;
- using System.Linq.Expressions;
- using EMIS.Entities;
- namespace EMIS.DataLogic.ExaminationApply
- {
- public class ExaminationTypeDAL
- {
- public ExaminationTypeRepository ExaminationTypeRepository { get; set; }
- public IQueryable<ExaminationTypeView> GetExaminationTypeView(Expression<Func<EX_ExaminationType, bool>> examinationTypeExpression)
- {
- var q = (from et in ExaminationTypeRepository.GetList(examinationTypeExpression)
- orderby et.Name
- select new ExaminationTypeView
- {
- ExaminationTypeID = et.ExaminationTypeID,
- Name = et.Name,
- IsTimesLimit = et.IsTimesLimit ?? false,
- RecordStatus = et.RecordStatus,
- CreateUserID = et.CreateUserID,
- CreateTime = et.CreateTime,
- ModifyUserID = et.ModifyUserID,
- ModifyTime = et.ModifyTime
- });
- return q;
- }
- }
- }
|