Answers for "C# monogodb"

C#
0

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);
}
Posted by: Guest on January-20-2021

C# Answers by Framework

Browse Popular Code Answers by Language