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