public GenericRepository(FinalProjectDbContext context)
 {
     _context = context;
     _dbSet   = context.Set <TEntity>();
 }
Exemple #2
0
 //GetAll
 public List <T> GetAll() => Context.Set <T>().ToList();