public Context(AuditDbContext db) { DbContext = db; DbSet = DbContext.Set <TEntity>(); }
public async Task <IEnumerable <TEntity> > GetAllAsync <TEntity>() where TEntity : BaseEntity { IQueryable <TEntity> query = _context.Set <TEntity>(); return(await query.ToListAsync()); }