Ejemplo n.º 1
0
 public void Import(DbContext db)
 {
     this.Importer = MongoDbDataImporter.GetInstance(db, this.Connection.Database);
     this.Importer.ImportSeries();
     this.Importer.ImportRooms();
     this.Importer.ImportFurnitureTypes();
     this.Importer.ImportProducts();
 }
        public static MongoDbDataImporter GetInstance(DbContext db, MongoDatabase source)
        {
            if (instance == null)
            {
                instance = new MongoDbDataImporter(db, source);
            }

            return instance;
        }
Ejemplo n.º 3
0
        public static MongoDbDataImporter GetInstance(DbContext db, MongoDatabase source)
        {
            if (instance == null)
            {
                instance = new MongoDbDataImporter(db, source);
            }

            return(instance);
        }