示例#1
0
        static void Main(string[] args)
        {
            MongoDatabase database = new MongoDatabase("localhost", "test_db");
            database.SetTimeout(500);
            database.Connect();

            //IMongoTestTask task = new InsertRecords();
            //IMongoTestTask task = new CountRecords();
            //IMongoTestTask task = new CountFilterGT();

            IMongoTestTask task = new InsertRetrieveRecordFromObject();
         
            task.Run(database);
        }
示例#2
0
        static void Main(string[] args)
        {
            MongoDatabase database = new MongoDatabase("localhost", "test_db");

            database.SetTimeout(500);
            database.Connect();

            //IMongoTestTask task = new InsertRecords();
            //IMongoTestTask task = new CountRecords();
            //IMongoTestTask task = new CountFilterGT();

            IMongoTestTask task = new InsertRetrieveRecordFromObject();

            task.Run(database);
        }