1234567891011121314151617181920212223242526272829 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using EMIS.DataLogic.Repositories;
- using EMIS.ViewModel.PaymentManage;
- using System.Linq.Expressions;
- using EMIS.Entities;
- namespace EMIS.DataLogic.PaymentManage
- {
- public class StudentCountRateDAL
- {
- public StudentCountRateRepository StudentCountRateRepository { get; set; }
- public IQueryable<StudentCountRateView> GetStudentCountRateViewQueryable(Expression<Func<TP_StudentCountRate, bool>> exp)
- {
- var query = from a in StudentCountRateRepository.GetList(exp)
- select new StudentCountRateView
- {
- StudentCountRateID = a.StudentCountRateID,
- TitleID = a.Title,
- BaseStudentCount = a.BaseStudentCount,
- Limit = a.Limit
- };
- return query;
- }
- }
- }
|