void client_GetRankCityCompleted(object sender, GetRankCityCompletedEventArgs e) { foreach (City city in e.Result) { CityTable cityTable = new CityTable() { LastRank = city.LastRank, Name = city.Name, Point = city.Points }; db.Citys.InsertOnSubmit(cityTable); } db.SubmitChanges(); dealWithRankList(); }
void client_GetRankCityCompleted(object sender, GetRankCityCompletedEventArgs e) { foreach (City city in e.Result) { CityTable cityTable = new CityTable() { LastRank = city.LastRank, Name = city.Name, Point = city.Points }; db.Citys.InsertOnSubmit(cityTable); } db.SubmitChanges(); dealWithRankList(); }