public virtual IEnumerable <T> GetAll() { return(_context.Set <T>().AsEnumerable()); }
public GenericRepository(PortfolioContext context) { _context = context; _dbSet = context.Set <TEntity>(); }
public Repository() { context = new PortfolioContext(); dbSet = context.Set <T>(); }
public Repository(PortfolioContext context) { _context = context; _dbSet = _context.Set <T>(); }