Expats buying property are allowed to buy resdential property in certain approved areas. If you buy a resedentail property it is actually a right of utilization for 99 years not full ownership and this allows you residence permit but not for work permit

Hope this helps