Exemple #1
0
 public void Show()
 {
     MongoData data = new MongoData(dbname);
     foreach (var tt in data.GetDataFromMongo(dbname).FindAll())
     {
         Console.WriteLine(tt["Message"].AsString);
     }
 }
Exemple #2
0
 public long Size()
 {
     MongoData data = new MongoData(dbname);
     return data.GetDataFromMongo(dbname).Count();
 }
Exemple #3
0
 public void ClearBase(string dbname)
 {
     MongoData data = new MongoData(dbname);
     data.GetDataFromMongo(dbname).RemoveAll();
 }