public void Add(T entity)
 {
     _context.Set <T>().Add(entity);
 }
Exemple #2
0
 public int Count(Expression <Func <T, bool> > predicate)
 {
     return(_context.Set <T>().Where(predicate).Count());
 }