/// <summary> /// Constructor default /// </summary> protected BaseRepository() { _dbSet = _context.Set <TEntity>(); }
public BaseRepository(LearningContext ctx) { _ctx = ctx; this.dbSet = _ctx.Set <T>(); }