/// <summary> /// Initializes a new instance of the <see cref="Repository1{T}" /> class /// </summary> /// <param name="context"></param> public Repository(APIDataContext context) { _dbContext = context; entities = context.Set <T>(); }
public IEnumerable <T> GetAll() { return(_dbContext.Set <T>().ToList()); }