Example #1
0
 //async
 public async Task <IEnumerable <T> > FindAllAsync()
 {
     return(await _dbContext.Set <T>().ToListAsync());
 }
Example #2
0
 public RepositoryBase(ZeMERPDbContext context)
 {
     _dbContext = context ?? throw new ArgumentException(nameof(context));
     _dbSet     = _dbContext.Set <T>();
 }