DSolve[b*y[x] - (-a - b + b*x + a*y[x])*Derivative[1][y][x] + a*x*Derivative[1][y][x]^2 == 0,y[x],x]