MongoClient in my c# console application to connect to MongoDBhttps://github.com/mongodb/mongo-csharp-driver/releases/tag/v
for .net 4.5 and greater versions and mongodriver 2x series follow the below code
var Client = new MongoClient();
var MongoDB = Client.GetDatabase("shop");
var Collec = MongoDB.GetCollection("computers");
var documnt = new BsonDocument
{
{"Brand","Dell"},
{"Price","400"},
{"Ram","8GB"},
{"HardDisk","1TB"},
{"Screen","16inch"}
};
Collec.InsertOneAsync(documnt);
Console.ReadLine();