public Repository(ERPContext context)
 {
     _context  = context;
     _entities = context.Set <TEntity>();
 }
Example #2
0
 public GenericRepository(ERPContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }
Example #3
0
 public Repository()
 {
     _context = new ERPContext();
     _context.Database.SetCommandTimeout(240);
     _entities = _context.Set <TEntity>();
 }