Beispiel #1
0
 public async Task <IEnumerable <T> > GetAll()
 {
     return(await _context.Set <T>().ToListAsync());
 }
Beispiel #2
0
 public RepositoryBase(Dal.SrToDoContext context)
 {
     _context  = context;
     _entities = _context.Set <T>();
 }