示例#1
0
 public void Add(StockData data)
 {
     StockMongoDB.GetInstance().AddStockData(data);
 }
示例#2
0
 /// <summary>
 /// Get stock's information by stock id
 /// </summary>
 /// <param name="id">Stock ID, eg. 600012</param>
 /// <returns>stock's information</returns>
 public IEnumerable <StockData> GetStockData(int id)
 {
     return(StockMongoDB.GetInstance().GetStock(id));
 }
示例#3
0
 public void BeforeAdd()
 {
     StockMongoDB.GetInstance().InitFindHelper();
 }
示例#4
0
 public void Load()
 {
     stockIDs_.Clear();
     stockIDs_.AddRange(StockMongoDB.GetInstance().GetAllStockIDs());
 }