コード例 #1
0
        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);
        }
コード例 #2
0
 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;
 }