protected NFX.DataAccess.MongoDB.Connector.Database GetDatabase() { var client = new NFX.DataAccess.MongoDB.Connector.MongoClient(this.Name); var server = client.Servers[m_ConnectString] ?? client.DefaultLocalServer; var db = server[m_DatabaseName]; return(db); }
protected NFX.DataAccess.MongoDB.Connector.Database GetDatabase() { var client= new NFX.DataAccess.MongoDB.Connector.MongoClient(this.Name); var server = client.Servers[m_ConnectString] ?? client.DefaultLocalServer; var db = server[m_DatabaseName]; return db; }