As a foreigner, if I decide to go to Shanghai to study Chinese (see my other thread http://www.skritter.com/forum/topic?id=103397212&comments=5) and want to learn proper Mandarin similar to that which is spoken in Beijing to what extent would I be able to do this given that the local dialect is Shanghainese? On a daily basis, when would I hear Mandarin being spoken and when would I hear Shanhainese being spoken?
The reason I am asking is that my Chinese teacher encourages me study in his home city Dalian and tells me that I would be much better off in terms of learning Chinese and making myself understood everywhere in China compared to if I study in Shanghai.