Beispiel #1
0
 void client_GetPostTrendCompleted(object sender, GetPostTrendCompletedEventArgs e)
 {
     foreach (PostTrend item in e.Result)
     {
         PostTrendTable postTrendTable = new PostTrendTable()
         {
             Describe   = item.Describe,
             PostAffect = item.PostAffect,
             Time       = item.Time,
             UserId     = item.UserId,
             Name       = item.Name
         };
         db.PostTrends.InsertOnSubmit(postTrendTable);
     }
     db.SubmitChanges();
     dealWithPostTrend();
     callback1();
 }
Beispiel #2
0
 void client_GetPostTrendCompleted(object sender, GetPostTrendCompletedEventArgs e)
 {
     foreach (PostTrend item in e.Result)
     {
         PostTrendTable postTrendTable = new PostTrendTable()
         {
             Describe=item.Describe,
             PostAffect=item.PostAffect,
             Time=item.Time,
             UserId=item.UserId,
             Name=item.Name
         };
         db.PostTrends.InsertOnSubmit(postTrendTable);
     }
     db.SubmitChanges();
     dealWithPostTrend();
     callback1();
 }