$x \mapsto Ax +By + C$ and $y \mapsto Dx$ can be rewritten as :
$$\left(\begin{matrix} x' \\\ y' \\\ 1 \end{matrix} \right)=M\left(\begin{matrix} x \\\y\\\1\end{matrix} \right)$$
Where
$$M=\left(\begin{matrix} A & B & C \\\ D & 0 & 0 \\\ 0 & 0 &1\end{matrix} \right).$$
If $M$ is invertible, then $\left(\begin{matrix} x \\\y\\\1\end{matrix} \right)=M^{-1}\left(\begin{matrix} x' \\\ y' \\\ 1 \end{matrix} \right)$.
So existence of an inverse is guaranteed by invertibility of the subjacent matrix when you have a linear system.
Which sums up here to $D\
e 0 \
e B$.
* * *
Note that we added a row for the affine part. By doing so, we where able to express your function as a linear system. We could have written also :
$$\left(\begin{matrix} x' \\\ y' \\\ 0 \end{matrix} \right)=M'\left(\begin{matrix} x \\\y\\\1\end{matrix} \right)$$
But the invertibility would have been more difficult to express in term of matrices.