Esempio n. 1
0
 public IQueryable<TEntity> GetAll()
 {
     try
     {
         return _instaContext.Set<TEntity>();
     }
     catch (Exception)
     {
         throw new Exception("Couldn't retrieve entities");
     }
 }
Esempio n. 2
0
 public Repository()
 {
     db    = new InstaContext();
     dbSet = db.Set <T>();
 }