Пример #1
0
 private IQueryable <Product> ApplySpecification(ISpecifications <Product> spec)
 {
     return(SpecificationEvaluator <Product> .GetQuery(_context.Set <Product>().AsQueryable(), spec));
 }
Пример #2
0
 public virtual bool Any(Expression <Func <TEntity, bool> > where)
 {
     return(_context.Set <TEntity>().Any(where));
 }
Пример #3
0
 private ProductsApiService(eCommerceContext context)
 {
     _context   = context;
     this.dbSet = _context.Set <Product>();
 }