ScoreRuleDAL.cs 604 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMISOnline.Entities;
  6. using EMISOnline.DataLogic.Repositories;
  7. using System.Linq.Expressions;
  8. namespace EMISOnline.DataLogic.Educational
  9. {
  10. public class ScoreRuleDAL
  11. {
  12. public ScoreRuleRepository ScoreRuleRepository { get; set; }
  13. public IQueryable<ER_ScoreRule> GetScoreRuleList(Expression<Func<ER_ScoreRule, bool>> exp)
  14. {
  15. var query = from sr in ScoreRuleRepository.Entities.Where(exp)
  16. select sr;
  17. return query;
  18. }
  19. }
  20. }