Protecting PEX Outdoors
As noted here: Is PEX exposed to the environment OK to use? you do not want to expose the material to UV light of which there is plenty in outdoor sunlight. 

If it were me I would plumb the outside connections in copper and then switch to PEX inside the building structure.