Cho hàm số $\displaystyle y=\frac{{mx+1}}{{x+n}}$. Nếu đồ thị hàm số có tiệm cận đứng$\displaystyle x=3$ và có tiệm cận ngang và đi qua điểm$\displaystyle A\left( {2;5} \right)$ thì phương trình hàm số là
A. $\displaystyle \frac{{-2x+1}}{{x-3}}$
B. $\displaystyle \frac{{5x+1}}{{x+3}}$
C. $\displaystyle \frac{{-5x+1}}{{x-3}}$
D. $\displaystyle \frac{{3x+1}}{{x-3}}$