Canceled share sales. Ruined business models. Tech moguls brought to heel. Barely a day goes by without more news on the widening scope of Beijing’s crackdown on private enterprise.

Yet money from around the world continues to flow into mainland China — testament to its gravitational pull on global investors and long-term confidence in its economy.

Amidst the turmoil in markets, foreign investors have added to their holdings of stocks in Shanghai and Shenzhen every month since November via trading links, according to Bloomberg calculations based on data from Hong Kong’s stock exchange.