public MongoDataSeeder(string databaseName, MongoDatabase database, IUserInterfaceHandlerIO io)
 {
     this.DataSource    = new MongoDataRaw();
     this.DataGenerator = new MongoDataGenerator(this.DataSource);
     this.DataManager   = MongoDataManager.GetInstance(database);
     this.Collections   = new Dictionary <string, IEnumerable <IMongoModel> >();
 }
Beispiel #2
0
        public static MongoDataManager GetInstance(MongoDatabase database)
        {
            if (instance == null)
            {
                instance = new MongoDataManager(database);
            }

            return(instance);
        }
Beispiel #3
0
 private MongoDbDataImporter(DbContext db, MongoDatabase source)
 {
     this.Db = db;
     this.MongoDataManager = MongoDataManager.GetInstance(source);
 }