Ejemplo n.º 1
0
 /// <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>();
 }
Ejemplo n.º 2
0
 public IEnumerable <T> GetAll()
 {
     return(_dbContext.Set <T>().ToList());
 }