Esempio n. 1
0
 public Context(AuditDbContext db)
 {
     DbContext = db;
     DbSet     = DbContext.Set <TEntity>();
 }
Esempio n. 2
0
        public async Task <IEnumerable <TEntity> > GetAllAsync <TEntity>() where TEntity : BaseEntity
        {
            IQueryable <TEntity> query = _context.Set <TEntity>();

            return(await query.ToListAsync());
        }