Esempio n. 1
0
 /// <summary>
 /// 保存快照信息
 /// </summary>
 /// <param name="list"></param>
 public static void SaveL1QuoteInfo(List <L1QuoteInfo> list)
 {
     foreach (L1QuoteInfo info in list)
     {
         L1QuoteInfo updateInfo = MongoDBHelper.FindOneAndReplace <L1QuoteInfo>(m => m.SecurityID == info.SecurityID, info);
         if (updateInfo == null)
         {
             MongoDBHelper.InsertOne <L1QuoteInfo>(info);
         }
     }
 }