DMF for anti-corrosion coatings