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