PVC
705.11.2 Solvent cementing. Joint surfaces shall be clean and free from moisture. A primer that conforms to ASTM F 656 shall be applied. Solvent cement conforming to ASTM D 2564, CSA B 137.3, CSA B 181.2 or CSA B 182.1 shall be applied to all joint surfaces. The joint shall be made while the cement is wet and shall be in accordance with ASTM D 2855. Solvent cement joints shall be permitted above or below ground.
Exception: A primer is not required where both of the following conditions apply:
1. The solvent cement used is third-party certified as conforming to ASTM D 2564.
2. The solvent cement is used only for joining PVC drain, waste and vent pipe and fittings in nonpressure applications in sizes up to and including 4 inches (102 mm) in diameter.
CPVC
605.15.2 Solvent cementing. Joint surfaces shall be clean and free from moisture. Joints shall be made in accordance with the pipe manufacturer's installation instructions. Where such instructions require that a primer be used, the primer shall be applied to the joint surfaces and a solvent cement orange in color and conforming to ASTM F 493 shall be applied to the joint surfaces. Where such instructions allow for a one-step solvent cement, yellow in color and conforming to ASTM F 493, to be used, the joint surfaces shall not require application of a primer before the solvent cement is applied. The joint shall be made while the cement is wet and in accordance with ASTM D 2846 or ASTM F 493. Solvent cemented joints shall be permitted above or below ground.
Most professionals use one step glue on CPVC
PVC Water
605.22.3 Solvent cementing. Joint surfaces shall be clean and free from moisture. A primer that conforms to ASTM F 656 shall be applied. Solvent cement conforming to ASTM D 2564 or CSA B 137.3 shall be applied to all joint surfaces. The joint shall be made while the cement is wet and shall be in accordance with ASTM D 2855. Solvent-cement joints shall be permitted above or below ground.
This requires priming. Also, not to be used inside a building as water distribution piping. Only approved for water service. (from source to building)