Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# monogodb

MongoClient dbClient = new MongoClient(<<YOUR ATLAS CONNECTION STRING>>);

var dbList = dbClient.ListDatabases().ToList();

Console.WriteLine("The list of databases on this server is: ");
foreach (var db in dbList)
{
    Console.WriteLine(db);
}
Source by www.mongodb.com #
 
PREVIOUS NEXT
Tagged: #monogodb
ADD COMMENT
Topic
Name
7+7 =