Esempio n. 1
0
 public void Delete <TEntity>(TEntity item) where TEntity : class
 {
     try
     {
         _db.Set <TEntity>().Remove(item);
     }
     catch (Exception e)
     {
         throw;
     }
 }
Esempio n. 2
0
 public async Task <List <TEntity> > GetAllRecordsAsync <TEntity>() where TEntity : class
 {
     return(await _db.Set <TEntity>().ToListAsync());
 }