/// <summary> /// constuctor intializing the context and table with the context generated from the constructor taking in options /// </summary> /// <param name="_context"></param> public GenericRepository(NewDataBaseContext _context) { this._context = _context; table = _context.Set <T>(); }
/// <summary> /// generic repo constructor, used for intializing the repositories with the context and table using options /// </summary> public GenericRepository() { this._context = new NewDataBaseContext(Options); table = _context.Set <T>(); }