//public ProductRepository(IConfiguration configuration,IDapper dapper) public ProductRepository(IConfiguration configuration) { _configuration = configuration; //_dapper = dapper; _factory = DapperFactory.GetInstance(configuration); _dapper = _factory.GetDapper(); }