Let $X$ be an integral scheme. Then since $X$ is irreducible it has a generic point $\eta$. Suppose $\operatorname{Spec}A$ is an nonempty affine open subset of $X$. Then $\eta$ is also the unique generic point of $\operatorname{Spec}A$. I would like to understand in what way the stalk at $\eta$, $\mathcal{O}_{X,\eta}$, is identified with $K(A)$, the fraction field of $A$.
Since $\operatorname{Spec}A$ is nonempty, I know that $A\neq (0)$. Further, since $X$ is integral, $\operatorname{Spec}A$ is also integral, and it follows that $A$ is an integral domain. So $(0)$ is a prime ideal, and is contained in every other prime ideal of $A$. I am not really sure where to go from here. What am I missing?
I also know that the unique generic point of $\operatorname{Spec}A$ is the nilradical of $A$, the intersection of all prime ideals of $A$, of which $(0)$ is an element. Further, the nilradical is prime since $\operatorname{Spec}A$ is irreducible.
Do we get that $(0)$ is the generic point of $\operatorname{Spec}A$ since $V((0))=\operatorname{Spec}A$, and hence $(0)$ is the generic point of $X$?