public void Setup() { var db = new MongoClient( LoaderConfig.Get("DataLayer:CSVAnalysis:url")). GetDatabase(LoaderConfig.Get("DataLayer:CSVAnalysis:db")); nppes_csv = db.GetCollection <BsonDocument> (LoaderConfig.Get("DataLayer:CSVAnalysis:nppes_csv_roaster")); nppes_api = db.GetCollection <BsonDocument> (LoaderConfig.Get("DataLayer:CSVAnalysis:nppes_api_roaster")); }
public MongoData() { db = new MongoClient(LoaderConfig.Get(url_name)). GetDatabase(LoaderConfig.Get(db_name)); nppes = db.GetCollection <BsonDocument> (LoaderConfig.Get(roaster_name)); zipEntries = db.GetCollection <ZipcodeMetadata> (LoaderConfig.Get(zip_codes)); RefreshCache(); }