Search
 
SCRIPT & CODE EXAMPLE
 

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);
}
Comment

C# Mongo Db

mongoClient = new MongoClient("mongodb://localhost:27017/");
var database = mongoClient.GetDatabase("test_database");
database.DropCollection("test"); //eskiyi siliyoruz
database.CreateCollection("test_slave"); //yeni oluşturuyoruz
database.RenameCollection("test_slave", "test");//yeni oluşturduğumuzu bunun yerine koyuyoruz
Comment

PREVIOUS NEXT
Code Example
Csharp :: get user startup folder path C# 
Csharp :: unity no serializefield 
Csharp :: show snackbar without scaffold flutter 
Csharp :: system linq c# 
Csharp :: datetime default c# 
Csharp :: vector2 with switch statement 
Csharp :: c# print decimal with zero at the end 
Csharp :: how c# connection 
Csharp :: find how many digits a number has csharp 
Csharp :: unity switch 
Csharp :: how to get keyboard input in unity 
Csharp :: c# get dictionary first key 
Csharp :: how to write a list to csv c# 
Csharp :: Long, Max and Min value 
Csharp :: C# clear console input buffer 
Csharp :: c# randize list 
Csharp :: unity c# change animation 
Csharp :: c# how to set string list 
Csharp :: unity reference textmeshpro 
Csharp :: how to locate a specific element in a list c# 
Csharp :: list min and Max value in c# 
Csharp :: c# code skripte kommunizieren 
Csharp :: unity add button 
Csharp :: set current date to textbox in asp.net 
Csharp :: Map Range Clamped unity 
Csharp :: how to remove all comma from string c# 
Csharp :: c# override gethashcode 
Csharp :: c# loop class properties add to array 
Csharp :: serial number unity pro 
Csharp :: get ad user using email address microsoft graph C# 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =