public BaseRepository(CqrsContext context)
 {
     _dbContext = context;
     _dbSet     = _dbContext.Set <TEntity>();
 }
Beispiel #2
0
 public List <T> GetAll()
 {
     return(_context.Set <T>().ToList());
 }