コード例 #1
0
ファイル: Global.asax.cs プロジェクト: DantasB/Siga-Livre
        private void LoadConfig()
        {
            string login      = ConfigurationManager.AppSettings["login"];
            string password   = ConfigurationManager.AppSettings["password"];
            string host       = ConfigurationManager.AppSettings["host"];
            string database   = ConfigurationManager.AppSettings["database"];
            string collection = ConfigurationManager.AppSettings["collection"];

            MongoHandler.StartOnMongo(login, password, host, database, collection);
            MongoHandler.ConnectToMongo();
        }