コード例 #1
0
        public IList <string> ListMongoDataBase(string datasourceCode)
        {
            DmeDataSource dmeDataSource = IsMongodbAndReturn(datasourceCode);
            MongodbHost   host          = JsonConvert.DeserializeObject <MongodbHost>(dmeDataSource.Connection);

            return(MongodbManager <object> .ListDataBases(host.ConnectionString));
        }
コード例 #2
0
        public IList <string> ListMongoDataBase(string host, int port)
        {
            string connectionString = $"mongodb://{host}:{port}";

            return(MongodbManager <object> .ListDataBases(connectionString));
        }