Esempio n. 1
0
        public IQueryable <TEntity> GetModel(Action <IOrderable <TEntity> > orderBy, MalignantTumorSystem.IDAL.Specification.ISpecification <TEntity> specification)
        {
            var queryable = GetModel().Where(specification.SatisfiedBy()).AsQueryable();
            var linq      = new Orderable <TEntity>(queryable);

            orderBy(linq);
            return(linq.Queryable);
        }
Esempio n. 2
0
 public TEntity Find(MalignantTumorSystem.IDAL.Specification.ISpecification <TEntity> specification)
 {
     return(GetModel().FirstOrDefault(specification.SatisfiedBy()));
 }
Esempio n. 3
0
 public IQueryable <TEntity> GetModel(MalignantTumorSystem.IDAL.Specification.ISpecification <TEntity> specification)
 {
     return(GetModel().Where(specification.SatisfiedBy()));
 }