Exemple #1
0
 public IQueryable <TEntity> GetAll()
 {
     return(_dbContext.Set <TEntity>().AsNoTracking());
 }
Exemple #2
0
 public int Count(Func <T, bool> predicate)
 {
     return(_context.Set <T>().Where(predicate).Count());
 }